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
8ec0743c
Commit
8ec0743c
authored
Sep 02, 2010
by
Bernd Melchers
Committed by
Martin Sustrik
Sep 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for signaler_t on HP-UX and AIX platforms
parent
d5b6f680
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AUTHORS
AUTHORS
+1
-0
signaler.cpp
src/signaler.cpp
+3
-3
No files found.
AUTHORS
View file @
8ec0743c
...
...
@@ -5,6 +5,7 @@ Alexej Lotz <alexej.lotz@arcor.de>
Asko Kauppi <askok@dnainternet.net>
Barak Amar <barak.amar@gmail.com>
Bernd Prager <bernd@prager.ws>
Bernd Melchers <melchers@ZEDAT.FU-Berlin.DE>
Brian Buchanan <bwb@holo.org>
Chris Wong <chris@chriswongstudio.com>
Conrad D. Steenberg <conrad.steenberg@caltech.edu>
...
...
src/signaler.cpp
View file @
8ec0743c
...
...
@@ -184,7 +184,7 @@ void zmq::signaler_t::send (const command_t &cmd_)
zmq_assert
(
nbytes
==
sizeof
(
command_t
));
}
bool
zmq
::
signaler_t
::
recv
(
command_t
&
cmd_
,
bool
block_
)
bool
zmq
::
signaler_t
::
recv
(
command_t
*
cmd_
,
bool
block_
)
{
if
(
block_
)
{
...
...
@@ -199,7 +199,7 @@ bool zmq::signaler_t::recv (command_t &cmd_, bool block_)
bool
result
;
ssize_t
nbytes
;
do
{
nbytes
=
::
recv
(
r
,
buffer
,
sizeof
(
command_t
),
0
);
nbytes
=
::
recv
(
r
,
(
char
*
)
cmd_
,
sizeof
(
command_t
),
0
);
}
while
(
nbytes
==
-
1
&&
errno
==
EINTR
);
if
(
nbytes
==
-
1
&&
errno
==
EAGAIN
)
{
result
=
false
;
...
...
@@ -213,7 +213,7 @@ bool zmq::signaler_t::recv (command_t &cmd_, bool block_)
result
=
true
;
}
if
(
block_
)
if
(
block_
)
{
// Set the reader to non-blocking mode.
int
flags
=
fcntl
(
r
,
F_GETFL
,
0
);
...
...
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