diff options
author | Ben Pfaff <blp@nicira.com> | 2013-07-12 14:18:01 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-07-12 14:24:29 -0700 |
commit | bc9fb3a9cd588148e97eaae4eaa200faf0ac8d33 (patch) | |
tree | 0268390b5beeb164f9eb75a474041bfff3352fe9 /lib/daemon.c | |
parent | 4c694ff7458a253ea7ff1fede2430a9d372aba34 (diff) |
util: Make subprogram_name thread-specific.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/daemon.c')
-rw-r--r-- | lib/daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/daemon.c b/lib/daemon.c index 3c1e5c3b..2c8cf32a 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -400,7 +400,7 @@ monitor_daemon(pid_t daemon_pid) char *status_msg; int crashes; - subprogram_name = "monitor"; + set_subprogram_name("monitor"); status_msg = xstrdup("healthy"); last_restart = TIME_MIN; crashes = 0; @@ -470,7 +470,7 @@ monitor_daemon(pid_t daemon_pid) /* Running in new daemon process. */ proctitle_restore(); - subprogram_name = ""; + set_subprogram_name(""); } /* Close standard file descriptors (except any that the client has requested we |