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:
parent
8e21bc0b46
commit
f06645c5f1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user