summaryrefslogtreecommitdiff
path: root/source3/smbd/smbd_cleanupd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-11-05 12:58:09 +0100
committerJeremy Allison <jra@samba.org>2017-12-05 04:58:26 +0100
commit41cfc737dfb2c751053a61917458a4a8cdb386b0 (patch)
treeddf54f290a82bd733e62bde8d8c300063364de7d /source3/smbd/smbd_cleanupd.c
parent6423ca4bf293cac5e2f84b1a37bb29b06b5c05ed (diff)
downloadsamba-41cfc737dfb2c751053a61917458a4a8cdb386b0.tar.gz
lib: Remove unused serverid.tdb
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Dec 5 04:58:26 CET 2017 on sn-devel-144
Diffstat (limited to 'source3/smbd/smbd_cleanupd.c')
-rw-r--r--source3/smbd/smbd_cleanupd.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/smbd/smbd_cleanupd.c b/source3/smbd/smbd_cleanupd.c
index cfb75c971be..5bd18c1411c 100644
--- a/source3/smbd/smbd_cleanupd.c
+++ b/source3/smbd/smbd_cleanupd.c
@@ -177,7 +177,6 @@ static void smbd_cleanupd_process_exited(struct messaging_context *msg,
child != NULL;
child = child->next)
{
- struct server_id child_id;
bool ok;
ok = cleanupdb_delete_child(child->pid);
@@ -185,14 +184,6 @@ static void smbd_cleanupd_process_exited(struct messaging_context *msg,
DBG_ERR("failed to delete pid %d\n", (int)child->pid);
}
- /*
- * Get child_id before messaging_cleanup which wipes
- * the unique_id. Not that it really matters here for
- * functionality (the child should have properly
- * cleaned up :-)) though, but it looks nicer.
- */
- child_id = pid_to_procid(child->pid);
-
smbprofile_cleanup(child->pid, state->parent_pid);
ret = messaging_cleanup(msg, child->pid);
@@ -202,11 +193,6 @@ static void smbd_cleanupd_process_exited(struct messaging_context *msg,
strerror(ret));
}
- if (!serverid_deregister(child_id)) {
- DBG_ERR("Could not remove pid %d from serverid.tdb\n",
- (int)child->pid);
- }
-
DBG_DEBUG("cleaned up pid %d\n", (int)child->pid);
}