0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-28 16:15:23 +08:00

Update signaler make_fdpair to set file descriptors to -1 when too many files are open using socketpair.

This commit is contained in:
Matt Connolly 2013-11-10 21:16:12 +10:00
parent 8e21bc0b46
commit f06645c5f1

View File

@ -474,7 +474,7 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_)
int rc = socketpair (AF_UNIX, SOCK_STREAM, 0, sv);
if (rc == -1) {
errno_assert (errno == ENFILE || errno == EMFILE);
sv [0] = sv [1] = -1;
*w_ = *r_ = -1;
return -1;
}
else {