tfork: set waiter process title
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 6 Sep 2017 03:59:55 +0000 (15:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Sep 2017 02:38:59 +0000 (04:38 +0200)
Display a meaningful process title for the waiter process, now that smbd is
calling setproctitle_init() and this value will be displayed in ps
output.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 26 04:38:59 CEST 2017 on sn-devel-144

lib/util/tfork.c

index ca4ab5076ceb604b96d9513abd74f0f273158df7..8ed5811c536fed5e64b7c89eb272f7f2aecaa7df 100644 (file)
@@ -537,6 +537,7 @@ static pid_t tfork_start_waiter_and_worker(struct tfork_state *state,
        /*
         * The "waiter" child.
         */
+       setproctitle("tfork waiter process");
        CatchSignal(SIGCHLD, SIG_DFL);
 
        close(status_sp_caller_fd);