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
7668e797
Commit
7668e797
authored
Apr 12, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zmq_poll returns ETERM in case of context termination
parent
3236cb1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
zmq_socket.txt
doc/zmq_socket.txt
+0
-3
zmq.cpp
src/zmq.cpp
+9
-2
No files found.
doc/zmq_socket.txt
View file @
7668e797
...
...
@@ -117,9 +117,6 @@ The requested socket 'type' is invalid.
The number of application threads using sockets within this 'context' has been
exceeded. See the 'app_threads' parameter of the _zmq_init()_ function.
*ETERM*::
The associated context was terminted.
SEE ALSO
--------
...
...
src/zmq.cpp
View file @
7668e797
...
...
@@ -408,7 +408,11 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
// Process 0MQ commands if needed.
if
(
nsockets
&&
pollfds
[
npollfds
-
1
].
revents
&
POLLIN
)
app_thread
->
process_commands
(
false
,
false
);
if
(
!
app_thread
->
process_commands
(
false
,
false
))
{
free
(
pollfds
);
errno
=
ETERM
;
return
-
1
;
}
// Check for the events.
int
pollfd_pos
=
0
;
...
...
@@ -560,7 +564,10 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
// Process 0MQ commands if needed.
if
(
nsockets
&&
FD_ISSET
(
notify_fd
,
&
inset
))
app_thread
->
process_commands
(
false
,
false
);
if
(
!
app_thread
->
process_commands
(
false
,
false
))
{
errno
=
ETERM
;
return
-
1
;
}
// Check for the events.
for
(
int
i
=
0
;
i
!=
nitems_
;
i
++
)
{
...
...
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