summaryrefslogtreecommitdiff
path: root/source3/lib/select.c
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
commitfdf4e84e2b3fa7b29b384a7a18c422f98be35950 (patch)
tree94c2163a3a002483740650f994da2f6e2649b0fe /source3/lib/select.c
parent333c0aabc99df4ad6fed1d79d0fe66015b5d2ef6 (diff)
downloadsamba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.tar.gz
samba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.tar.bz2
samba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.zip
Check return value of pipe(2)
(This used to be commit 49da21c03a1a5801fba4b12837cccf2887e0d8f0)
Diffstat (limited to 'source3/lib/select.c')
-rw-r--r--source3/lib/select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/select.c b/source3/lib/select.c
index d5e4ba68f2..c3da6a9bba 100644
--- a/source3/lib/select.c
+++ b/source3/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