fix overwriting errno on bind failure

Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
This commit is contained in:
Dhammika Pathirana
2010-12-13 14:18:47 +01:00
committed by Martin Sustrik
parent a9d969a73e
commit 22b2b9a2b6
2 changed files with 8 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ namespace zmq
sockaddr_storage addr;
socklen_t addr_len;
// True, if the undelying file for UNIX domain socket exists.
bool has_file;
// Underlying socket.
fd_t s;