git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f751828
)
s4-process_model: Panic if the standard init function fails
author
Andreas Schneider
<asn@samba.org>
Thu, 26 Mar 2015 09:58:18 +0000
(10:58 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 27 Mar 2015 03:03:14 +0000
(
04:03
+0100)
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>
source4/smbd/process_standard.c
patch
|
blob
|
history
diff --git
a/source4/smbd/process_standard.c
b/source4/smbd/process_standard.c
index e68dbb12ce0801aa0f7317683dc5ba1f5034acdf..e2b9f13046d688de2393659cd87ef2df86ae734e 100644
(file)
--- 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!");
+ }
}
/*