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
eb54966c
Unverified
Commit
eb54966c
authored
Dec 10, 2019
by
Luca Boccassi
Committed by
GitHub
Dec 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3757 from sigiesec/fix-windows-signaler-regression
Fix windows signaler regression
parents
9b67fe8a
9f16513e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
signaler.cpp
src/signaler.cpp
+7
-3
No files found.
src/signaler.cpp
View file @
eb54966c
...
...
@@ -183,10 +183,14 @@ void zmq::signaler_t::send ()
ssize_t
sz
=
write
(
_w
,
&
inc
,
sizeof
(
inc
));
errno_assert
(
sz
==
sizeof
(
inc
));
#elif defined ZMQ_HAVE_WINDOWS
unsigned
char
dummy
=
0
;
const
int
nbytes
=
::
send
(
_w
,
reinterpret_cast
<
char
*>
(
&
dummy
),
sizeof
(
dummy
),
0
);
const
char
dummy
=
0
;
int
nbytes
;
do
{
nbytes
=
::
send
(
_w
,
&
dummy
,
sizeof
(
dummy
),
0
);
wsa_assert
(
nbytes
!=
SOCKET_ERROR
);
// wsa_assert does not abort on WSAEWOULDBLOCK. If we get this, we retry.
}
while
(
nbytes
==
SOCKET_ERROR
);
// Given the small size of dummy (should be 1) expect that send was able to send everything.
zmq_assert
(
nbytes
==
sizeof
(
dummy
));
#elif defined ZMQ_HAVE_VXWORKS
unsigned
char
dummy
=
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