Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
__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;
#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;
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)