From 450ebe97d1c36a8041e3567c0b1fe94822909ea2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 15 Apr 2013 11:28:47 +0200 Subject: s3:winbindd: avoid usage of procid_self() metze Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/winbindd/winbindd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/winbindd') 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"); } -- cgit