diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-23 10:49:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-23 11:04:13 +0100 |
commit | fdf4e84e2b3fa7b29b384a7a18c422f98be35950 (patch) | |
tree | 94c2163a3a002483740650f994da2f6e2649b0fe | |
parent | 333c0aabc99df4ad6fed1d79d0fe66015b5d2ef6 (diff) | |
download | samba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.tar.gz samba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.tar.bz2 samba-fdf4e84e2b3fa7b29b384a7a18c422f98be35950.zip |
Check return value of pipe(2)
(This used to be commit 49da21c03a1a5801fba4b12837cccf2887e0d8f0)
-rw-r--r-- | source3/lib/select.c | 3 |
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 |