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-timeval.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-timeval.c')
| -rw-r--r-- | tests/test-timeval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-timeval.c b/tests/test-timeval.c index 7aa6867a8..3b39b4117 100644 --- a/tests/test-timeval.c +++ b/tests/test-timeval.c @@ -24,6 +24,7 @@ #include <sys/types.h> #include <unistd.h> +#include "command-line.h" #include "daemon.h" #include "util.h" @@ -83,6 +84,7 @@ usage(void) int main(int argc, char *argv[]) { + proctitle_init(argc, argv); set_program_name(argv[0]); time_init(); |
