mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
tfork: set waiter process title
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
This commit is contained in:
parent
4aa1c09dbc
commit
3982b774f4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user