s3: Use pid_to_procid
authorVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 10:02:21 +0000 (11:02 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 13 Dec 2011 11:35:08 +0000 (12:35 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Dec 13 12:35:09 CET 2011 on sn-devel-104

source3/smbd/server.c

index e7a7d3152777fe1087d4617bbc357bd127c15d5b..cc51979c34c3d86906c291a1a055a52802c6ca8d 100644 (file)
@@ -274,8 +274,7 @@ static void remove_child_pid(struct tevent_context *ev_ctx,
                }
        }
 
-       child_id = procid_self(); /* Just initialize pid and potentially vnn */
-       child_id.pid = pid;
+       child_id = pid_to_procid(pid);
 
        if (!serverid_deregister(child_id)) {
                DEBUG(1, ("Could not remove pid %d from serverid.tdb\n",