diff options
author | Ralph Boehme <slow@samba.org> | 2022-12-02 15:38:44 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-12-14 01:38:29 +0000 |
commit | 969e062724f39d7406fddfd335533f8c24cb641d (patch) | |
tree | 1a3c189b1ab38168613be19dd9a6ec15840a9f8a /lib/util/tfork.c | |
parent | 14571c5cc47ccc1d168f38c65d786b61492485d9 (diff) | |
download | samba-969e062724f39d7406fddfd335533f8c24cb641d.tar.gz |
lib/util: use process_set_title() in tfork()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/util/tfork.c')
-rw-r--r-- | lib/util/tfork.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/util/tfork.c b/lib/util/tfork.c index d64c7174fbf..9867543702e 100644 --- a/lib/util/tfork.c +++ b/lib/util/tfork.c @@ -572,8 +572,8 @@ static pid_t tfork_start_waiter_and_worker(struct tfork_state *state, /* * The "waiter" child. */ - setproctitle("tfork waiter process"); - prctl_set_comment("tfork waiter"); + process_set_title("tfork waiter", "tfork waiter proces"); + CatchSignal(SIGCHLD, SIG_DFL); close(status_sp_caller_fd); @@ -605,8 +605,7 @@ static pid_t tfork_start_waiter_and_worker(struct tfork_state *state, return 0; } state->worker_pid = pid; - setproctitle("tfork waiter process(%d)", pid); - prctl_set_comment("tfork(%d)", pid); + process_set_title("tfork(%d)", "tfork waiter process(%d)", pid); close(ready_pipe_worker_fd); |