summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-04-15 11:28:47 +0200
committerMichael Adam <obnox@samba.org>2013-04-18 13:15:10 +0200
commit450ebe97d1c36a8041e3567c0b1fe94822909ea2 (patch)
tree596c2009cac39e9d69500a239bf75bceba03cd78 /source3/winbindd/winbindd.c
parentbeb9a27180e5570337381d03fac55bbe6d1637e0 (diff)
downloadsamba-450ebe97d1c36a8041e3567c0b1fe94822909ea2.tar.gz
samba-450ebe97d1c36a8041e3567c0b1fe94822909ea2.tar.bz2
samba-450ebe97d1c36a8041e3567c0b1fe94822909ea2.zip
s3:winbindd: avoid usage of procid_self()
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd.c')
-rw-r--r--source3/winbindd/winbindd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index f5da15c259..7a0700dffa 100644
--- 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");
}