summaryrefslogtreecommitdiff
path: root/source4/smbd/server.c
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-09-06 16:04:50 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-09-26 00:41:16 +0200
commit4aa1c09dbcbb58c089d93ba436183785371519f3 (patch)
treea1c64404efd6fa79104c165ae391efcefb40066c /source4/smbd/server.c
parent4f84b6dfa87964d8b99a45021fa51835c962876c (diff)
downloadsamba-4aa1c09dbcbb58c089d93ba436183785371519f3.tar.gz
s4:smbd: set samba root process title
Set the process title in the samba root process to clearly identify it 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>
Diffstat (limited to 'source4/smbd/server.c')
-rw-r--r--source4/smbd/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index dccc826d595..249391c0dff 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -382,6 +382,8 @@ static int binary_smbd_main(const char *binary_name,
struct server_state *state = NULL;
struct tevent_signal *se = NULL;
+ setproctitle("root process");
+
pc = poptGetContext(binary_name, argc, argv, long_options, 0);
while((opt = poptGetNextOpt(pc)) != -1) {
switch(opt) {