This makes sure we remove any messaging sockets if a child dies or calls exit()
without running the talloc destructor for messaging
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
#include "ldb_wrap.h"
#include "lib/messaging/messaging.h"
#include "lib/util/debug.h"
+#include "source3/lib/messages_dgm.h"
struct standard_child_state {
const char *name;
int status = 0;
pid_t pid;
+ messaging_dgm_cleanup(state->pid);
+
/* the child has closed the pipe, assume its dead */
errno = 0;
pid = waitpid(state->pid, &status, 0);
source='process_standard.c',
subsystem='process_model',
init_function='process_model_standard_init',
- deps='MESSAGING events ldbsamba process_model samba-sockets cluster',
+ deps='MESSAGING events ldbsamba process_model samba-sockets cluster messages_dgm',
internal_module=False
)