diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-07-19 19:29:09 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-08-18 11:46:32 +0930 |
commit | 9fbb191b78a0cef008166fbc2bdad454735b8e1c (patch) | |
tree | c016891d655a2313e5421b1d44e06e297b695259 /ctdb/common/ctdb_logging.c | |
parent | 1a009aff73cd3fa0e9653c35581283bd4de614e3 (diff) | |
download | samba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.tar.gz samba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.tar.xz samba-9fbb191b78a0cef008166fbc2bdad454735b8e1c.zip |
logging: give a unique logging name to each forked child.
This means we can distinguish which child is logging, esp. via syslog where we have no pid.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 68b3761a0874429b90731741f0531f76dcfbb081)
Diffstat (limited to 'ctdb/common/ctdb_logging.c')
-rw-r--r-- | ctdb/common/ctdb_logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_logging.c b/ctdb/common/ctdb_logging.c index 18aafa2332..de29333582 100644 --- a/ctdb/common/ctdb_logging.c +++ b/ctdb/common/ctdb_logging.c @@ -164,7 +164,7 @@ int32_t ctdb_control_get_log(struct ctdb_context *ctdb, TDB_DATA addr) } if (child == 0) { - if (switch_from_server_to_client(ctdb) != 0) { + if (switch_from_server_to_client(ctdb, "log-collector") != 0) { DEBUG(DEBUG_CRIT, (__location__ "ERROR: failed to switch log collector child into client mode.\n")); _exit(1); } |