s4:smbd: call setproctitle_init
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 13 Sep 2017 21:36:21 +0000 (09:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 25 Sep 2017 22:41:16 +0000 (00:41 +0200)
commit4f84b6dfa87964d8b99a45021fa51835c962876c
tree858e82a58d5adde84bdfde94a99ff721a1fed448
parent25b9e06f4a66a5269221fa7477eda0eab8344c79
s4:smbd: call setproctitle_init

Call setproctitle_init() in main which suppresses the
  "samba: setproctitle not initialized, please either call
   setproctitle_init() or link against libbsd-ctor."
messages, but more importantly it displays meaningful details in ps
output.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=9816

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/replace/replace.c
lib/replace/replace.h
lib/replace/wscript
source4/smbd/server.c