summaryrefslogtreecommitdiff
path: root/source4/smbd
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-03-26 10:58:18 +0100
committerMichael Adam <obnox@samba.org>2015-03-27 04:03:14 +0100
commit3fb40b4bec0ca8e035e0e2e9e7b435ebfcedf3eb (patch)
treebb0cb5616920b0df3725a8cd6bb499d2f551edb9 /source4/smbd
parentf75182841d4a7d63bd070022270926e324631fa9 (diff)
downloadsamba-3fb40b4bec0ca8e035e0e2e9e7b435ebfcedf3eb.tar.gz
s4-process_model: Panic if the standard init function fails
Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/smbd')
-rw-r--r--source4/smbd/process_standard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c
index e68dbb12ce0..e2b9f13046d 100644
--- a/source4/smbd/process_standard.c
+++ b/source4/smbd/process_standard.c
@@ -49,7 +49,12 @@ static int child_pipe[2] = { -1, -1 };
*/
static void standard_model_init(void)
{
- pipe(child_pipe);
+ int rc;
+
+ rc = pipe(child_pipe);
+ if (rc < 0) {
+ smb_panic("Failed to initialze pipe!");
+ }
}
/*