s3: Re-introduce a procid_self()
authorVolker Lendecke <vl@samba.org>
Thu, 30 Sep 2010 14:27:42 +0000 (16:27 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 30 Sep 2010 12:29:56 +0000 (14:29 +0200)
Giving the parent pid to reinit_after_fork is not a good idea....
None of the other callers do this, checked it.

source3/winbindd/winbindd_dual.c

index 4cec7c2a1a8f29db1b4755e3f612bd26a302afd6..931ec6787a72c24e8b803d1f4420abbf413412cc 100644 (file)
@@ -1133,7 +1133,7 @@ bool winbindd_reinit_after_fork(const char *logfilename)
        status = reinit_after_fork(
                winbind_messaging_context(),
                winbind_event_context(),
-               messaging_server_id(winbind_messaging_context()),
+               procid_self(),
                true);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0,("reinit_after_fork() failed\n"));