git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3:winbindd: avoid usage of procid_self()
[metze/samba/wip.git]
/
source3
/
winbindd
/
winbindd.c
diff --git
a/source3/winbindd/winbindd.c
b/source3/winbindd/winbindd.c
index f5da15c259571b91127bda14b5c1ea3d58bca685..7a0700dffa6569ae605136f3ebe34da2783ac1ef 100644
(file)
--- a/
source3/winbindd/winbindd.c
+++ b/
source3/winbindd/winbindd.c
@@
-212,7
+212,9
@@
static void terminate(bool is_parent)
#endif
if (is_parent) {
- serverid_deregister(procid_self());
+ struct messaging_context *msg = winbind_messaging_context();
+ struct server_id self = messaging_server_id(msg);
+ serverid_deregister(self);
pidfile_unlink(lp_piddir(), "winbindd");
}