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
65dcd790
Commit
65dcd790
authored
Mar 18, 2014
by
Richard Newton
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #936 from soundart/master
cmake: fix test_fork, fix fragile code related to HAVE_FORK macro
parents
59b20e7f
8edc80f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
platform.hpp.in
builds/cmake/platform.hpp.in
+1
-1
signaler.cpp
src/signaler.cpp
+2
-2
No files found.
builds/cmake/platform.hpp.in
View file @
65dcd790
...
...
@@ -10,7 +10,7 @@
#cmakedefine ZMQ_FORCE_MUTEXES
#cmakedefine
01
HAVE_FORK
#cmakedefine HAVE_FORK
#cmakedefine HAVE_CLOCK_GETTIME
#cmakedefine HAVE_GETHRTIME
#cmakedefine ZMQ_HAVE_UIO
...
...
src/signaler.cpp
View file @
65dcd790
...
...
@@ -104,7 +104,7 @@ zmq::fd_t zmq::signaler_t::get_fd ()
void
zmq
::
signaler_t
::
send
()
{
#if
HAVE_FORK
#if
defined(HAVE_FORK)
if
(
unlikely
(
pid
!=
getpid
()))
{
//printf("Child process %d signaler_t::send returning without sending #1\n", getpid());
return
;
// do not send anything in forked child context
...
...
@@ -125,7 +125,7 @@ void zmq::signaler_t::send ()
ssize_t
nbytes
=
::
send
(
w
,
&
dummy
,
sizeof
(
dummy
),
0
);
if
(
unlikely
(
nbytes
==
-
1
&&
errno
==
EINTR
))
continue
;
#if
HAVE_FORK
#if
defined(HAVE_FORK)
if
(
unlikely
(
pid
!=
getpid
()))
{
//printf("Child process %d signaler_t::send returning without sending #2\n", getpid());
errno
=
EINTR
;
...
...
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