Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
e18772f9
Commit
e18772f9
authored
Apr 29, 2020
by
Gudmundur Adalsteinsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: -1 used for invalid socket
Solution: use retired_fd instead
parent
aa29f7ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ipc_connecter.cpp
src/ipc_connecter.cpp
+1
-1
tipc_connecter.cpp
src/tipc_connecter.cpp
+1
-1
tipc_listener.cpp
src/tipc_listener.cpp
+1
-1
No files found.
src/ipc_connecter.cpp
View file @
e18772f9
...
...
@@ -115,7 +115,7 @@ int zmq::ipc_connecter_t::open ()
// Create the socket.
_s
=
open_socket
(
AF_UNIX
,
SOCK_STREAM
,
0
);
if
(
_s
==
-
1
)
if
(
_s
==
retired_fd
)
return
-
1
;
// Set the non-blocking flag.
...
...
src/tipc_connecter.cpp
View file @
e18772f9
...
...
@@ -116,7 +116,7 @@ int zmq::tipc_connecter_t::open ()
}
// Create the socket.
_s
=
open_socket
(
AF_TIPC
,
SOCK_STREAM
,
0
);
if
(
_s
==
-
1
)
if
(
_s
==
retired_fd
)
return
-
1
;
// Set the non-blocking flag.
...
...
src/tipc_listener.cpp
View file @
e18772f9
...
...
@@ -102,7 +102,7 @@ int zmq::tipc_listener_t::set_local_address (const char *addr_)
// Create a listening socket.
_s
=
open_socket
(
AF_TIPC
,
SOCK_STREAM
,
0
);
if
(
_s
==
-
1
)
if
(
_s
==
retired_fd
)
return
-
1
;
// If random Port Identity, update address object to reflect the assigned address
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment