1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

smbd: Move smbprofile_cleanup() to the cleanupd

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2015-11-06 15:21:59 +01:00
parent b4b4fd0ba0
commit 1dddba5f17
2 changed files with 3 additions and 2 deletions

View File

@ -579,8 +579,6 @@ static void remove_child_pid(struct smbd_parent_context *parent,
__func__, strerror(ret)));
}
smbprofile_cleanup(pid, getpid());
for (child = parent->children; child != NULL; child = child->next) {
if (child->pid == pid) {
struct smbd_child_pid *tmp = child;

View File

@ -21,6 +21,7 @@
#include "smbd_cleanupd.h"
#include "lib/util/tevent_ntstatus.h"
#include "lib/util/debug.h"
#include "smbprofile.h"
struct smbd_cleanupd_state {
pid_t parent_pid;
@ -98,6 +99,8 @@ static void smbd_cleanupd_process_exited(struct messaging_context *msg,
DBG_DEBUG("%d exited %sclean\n", (int)pid,
unclean_shutdown ? "un" : "");
smbprofile_cleanup(pid, state->parent_pid);
}
NTSTATUS smbd_cleanupd_recv(struct tevent_req *req)