diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-01-19 15:00:56 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-01-26 10:52:46 -0800 |
| commit | 40f0707cd9d105203c2b8b97a955b57aca426f13 (patch) | |
| tree | fe1150b1cdd4ee8dbfabc3ce37ed2bceced12ac9 /tests/test-jsonrpc.c | |
| parent | 7c6a5f146742506a7a15cceface63ec3ba1e3076 (diff) | |
| download | openvswitch-40f0707cd9d105203c2b8b97a955b57aca426f13.tar.gz | |
daemon: Make --monitor process change its process title.
When --monitor is used, administrators sometimes become confused about the
presence of two copies of each process. This commit attempts to clarify
the situation by making the monitoring process change its process name, as
seen in /proc/$pid/cmdline and in "ps", to clearly indicate what is going
on.
CC: Dan Wendlandt <dan@nicira.com>
Diffstat (limited to 'tests/test-jsonrpc.c')
| -rw-r--r-- | tests/test-jsonrpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test-jsonrpc.c b/tests/test-jsonrpc.c index da92cec90..570ae11a8 100644 --- a/tests/test-jsonrpc.c +++ b/tests/test-jsonrpc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Nicira Networks. + * Copyright (c) 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,6 +42,7 @@ static void parse_options(int argc, char *argv[]); int main(int argc, char *argv[]) { + proctitle_init(argc, argv); set_program_name(argv[0]); time_init(); vlog_init(); |
