clean event context after child is forked.
[metze/samba/wip.git] / source3 / lib / util.c
index d00a764c1d543dbb377cfdd13cdb4a4c51717b6e..08ea5add7a559a0bf83c02fae6ea99c5c7d7397e 100644 (file)
@@ -949,6 +949,7 @@ void become_daemon(bool Fork, bool no_process_group)
 }
 
 bool reinit_after_fork(struct messaging_context *msg_ctx,
+                      struct event_context *ev_ctx,
                       bool parent_longlived)
 {
        NTSTATUS status;
@@ -976,6 +977,8 @@ bool reinit_after_fork(struct messaging_context *msg_ctx,
                return false;
        }
 
+       event_context_reinit(ev_ctx);
+
        return true;
 }