Merge pull request #401 from hurtonm/master

Fix issue #397
This commit is contained in:
Ian Barber 2012-07-13 07:14:27 -07:00
commit bea0b4817b

View File

@ -171,6 +171,8 @@ int zmq::ipc_listener_t::close ()
int rc = ::close (s);
errno_assert (rc == 0);
s = retired_fd;
// If there's an underlying UNIX domain socket, get rid of the file it
// is associated with.
if (has_file && !filename.empty ()) {
@ -182,7 +184,6 @@ int zmq::ipc_listener_t::close ()
}
socket->monitor_event (ZMQ_EVENT_CLOSED, endpoint.c_str(), s);
s = retired_fd;
return 0;
}