mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +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:
parent
b4b4fd0ba0
commit
1dddba5f17
@ -579,8 +579,6 @@ static void remove_child_pid(struct smbd_parent_context *parent,
|
|||||||
__func__, strerror(ret)));
|
__func__, strerror(ret)));
|
||||||
}
|
}
|
||||||
|
|
||||||
smbprofile_cleanup(pid, getpid());
|
|
||||||
|
|
||||||
for (child = parent->children; child != NULL; child = child->next) {
|
for (child = parent->children; child != NULL; child = child->next) {
|
||||||
if (child->pid == pid) {
|
if (child->pid == pid) {
|
||||||
struct smbd_child_pid *tmp = child;
|
struct smbd_child_pid *tmp = child;
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "smbd_cleanupd.h"
|
#include "smbd_cleanupd.h"
|
||||||
#include "lib/util/tevent_ntstatus.h"
|
#include "lib/util/tevent_ntstatus.h"
|
||||||
#include "lib/util/debug.h"
|
#include "lib/util/debug.h"
|
||||||
|
#include "smbprofile.h"
|
||||||
|
|
||||||
struct smbd_cleanupd_state {
|
struct smbd_cleanupd_state {
|
||||||
pid_t parent_pid;
|
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,
|
DBG_DEBUG("%d exited %sclean\n", (int)pid,
|
||||||
unclean_shutdown ? "un" : "");
|
unclean_shutdown ? "un" : "");
|
||||||
|
|
||||||
|
smbprofile_cleanup(pid, state->parent_pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS smbd_cleanupd_recv(struct tevent_req *req)
|
NTSTATUS smbd_cleanupd_recv(struct tevent_req *req)
|
||||||
|
Loading…
Reference in New Issue
Block a user