From: Stefan Metzmacher Date: Mon, 15 Apr 2013 09:28:47 +0000 (+0200) Subject: s3:winbindd: avoid usage of procid_self() X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=450ebe97d1c36a8041e3567c0b1fe94822909ea2 s3:winbindd: avoid usage of procid_self() metze Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index f5da15c25957..7a0700dffa65 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"); }