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
84560c16
Commit
84560c16
authored
Jul 29, 2012
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #405 from jimenezrick/master
Fix LIBZMQ-404: zmq_term not truly re-entrant
parents
631e12d4
92bee5a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
zmq.cpp
src/zmq.cpp
+10
-7
No files found.
src/zmq.cpp
View file @
84560c16
...
...
@@ -169,21 +169,24 @@ int zmq_ctx_destroy (void *ctx_)
errno
=
EFAULT
;
return
-
1
;
}
int
rc
=
((
zmq
::
ctx_t
*
)
ctx_
)
->
terminate
();
int
en
=
errno
;
// Shut down only if termination was not interrupted by a signal.
if
(
!
rc
||
en
!=
EINTR
)
{
#ifdef ZMQ_HAVE_WINDOWS
// On Windows, uninitialise socket layer.
rc
=
WSACleanup
();
wsa_assert
(
rc
!=
SOCKET_ERROR
);
// On Windows, uninitialise socket layer.
rc
=
WSACleanup
();
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#endif
#if defined ZMQ_HAVE_OPENPGM
// Shut down the OpenPGM library.
if
(
pgm_shutdown
()
!=
TRUE
)
zmq_assert
(
false
);
// Shut down the OpenPGM library.
if
(
pgm_shutdown
()
!=
TRUE
)
zmq_assert
(
false
);
#endif
}
errno
=
en
;
return
rc
;
...
...
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