From 62249f755a333f9265395a292af5b8a31b6825ad Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@samba.org>
Date: Tue, 13 Dec 2011 11:02:21 +0100
Subject: s3: Use pid_to_procid

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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'source3/smbd')

diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e7a7d31527..cc51979c34 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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",
-- 
cgit