smbd: set long process name of smbd child processes to "smbd: <CLIENT IP>"
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2022 08:49:11 +0000 (09:49 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 14 Dec 2022 02:47:24 +0000 (02:47 +0000)
commit5955dc1e4fde7c1335cae5c7fd9bef71fd3fab3c
tree3462a0b1f161cff4b4706416f7a4a8e7366d9990
parentfc57b88e6a93d59ad243364a513d33cecf66e4ab
smbd: set long process name of smbd child processes to "smbd: <CLIENT IP>"

The resulting process listings, depending on the format chosen for the process
name, show the relevant smbd processes like this:

$ ps faxo pid,uid,comm | egrep "\_.*smbd" | grep -v grep
1690322     0  \_ smbd
1690326     0      \_ smbd-notifyd
1690327     0      \_ smbd-cleanupd
1690337     0      \_ smbd[::1]

$ ps faxo pid,uid,args | egrep "\_.*smbd" | grep -v grep
1690322     0  \_ ./bin/smbd -D
1690326     0      \_ smbd: notifyd
1690327     0      \_ smbd: cleanupd
1690337     0      \_ smbd: client [::1]

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Dec 14 02:47:24 UTC 2022 on sn-devel-184
source3/smbd/server.c