From c80f70390c3763d5d7248979db9542cd05b7cb44 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 15 Mar 2012 16:29:27 +0100 Subject: s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent process died. This applies to all child processes making use of reinit_after_fork(). It is implemented by establishing a pipe between parent and child. The child watches for EOF on the read end of the pipe, indidcating an exited parent. Pair-Programmed-With: Stefan Metzmacher --- source3/include/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/proto.h') diff --git a/source3/include/proto.h b/source3/include/proto.h index e0d9f3117e..e8a0d42b3c 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -484,6 +484,7 @@ char *unix_clean_name(TALLOC_CTX *ctx, const char *s); char *clean_name(TALLOC_CTX *ctx, const char *s); ssize_t write_data_at_offset(int fd, const char *buffer, size_t N, SMB_OFF_T pos); int set_blocking(int fd, bool set); +NTSTATUS init_before_fork(void); NTSTATUS reinit_after_fork(struct messaging_context *msg_ctx, struct event_context *ev_ctx, bool parent_longlived); -- cgit