summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-03-15 16:29:27 +0100
committerMichael Adam <obnox@samba.org>2012-03-15 18:41:37 +0100
commitc80f70390c3763d5d7248979db9542cd05b7cb44 (patch)
treea0f96da41205705839cec1dead1fc1762051a2e5 /source3/include
parente5ebe67e3837cf4da0ae2c3d00c72a244b8f202f (diff)
downloadsamba-c80f70390c3763d5d7248979db9542cd05b7cb44.tar.gz
samba-c80f70390c3763d5d7248979db9542cd05b7cb44.tar.bz2
samba-c80f70390c3763d5d7248979db9542cd05b7cb44.zip
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 <metze@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
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);