summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-23 10:49:00 +0100
committerVolker Lendecke <vl@samba.org>2008-02-23 11:04:13 +0100
commit49da21c03a1a5801fba4b12837cccf2887e0d8f0 (patch)
tree814ff146e8fba8a9a8ec8d3daf947ee589be6d74
parentd34701d49cf5b30f5b9963dab5643b4b62704413 (diff)
downloadsamba-49da21c03a1a5801fba4b12837cccf2887e0d8f0.tar.gz
Check return value of pipe(2)
-rw-r--r--source/lib/select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/select.c b/source/lib/select.c
index d5e4ba68f29..c3da6a9bbaf 100644
--- a/source/lib/select.c
+++ b/source/lib/select.c
@@ -58,7 +58,8 @@ int sys_select(int maxfd, fd_set *readfds, fd_set *writefds, fd_set *errorfds, s
fd_set *readfds2, readfds_buf;
if (initialised != sys_getpid()) {
- pipe(select_pipe);
+ if (pipe(select_pipe) == -1)
+ smb_panic("Could not create select pipe");
/*
* These next two lines seem to fix a bug with the Linux