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
7a9933f2
Unverified
Commit
7a9933f2
authored
Jun 28, 2018
by
Simon Giesecke
Committed by
GitHub
Jun 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3179 from masariello/master
Problem: stack overflow on win64 #2876
parents
83e1712d
9066e067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
signaler.cpp
src/signaler.cpp
+8
-5
No files found.
src/signaler.cpp
View file @
7a9933f2
...
...
@@ -29,6 +29,7 @@
#include "precompiled.hpp"
#include "poller.hpp"
#include "polling_util.hpp"
#if defined ZMQ_POLL_BASED_ON_POLL
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_AIX
...
...
@@ -270,19 +271,21 @@ int zmq::signaler_t::wait (int timeout_)
#elif defined ZMQ_POLL_BASED_ON_SELECT
fd_set
fds
;
FD_ZERO
(
&
fds
);
FD_SET
(
_r
,
&
fds
);
optimized_fd_set_t
fds
(
FD_SETSIZE
)
;
FD_ZERO
(
fds
.
get
()
);
FD_SET
(
_r
,
fds
.
get
()
);
struct
timeval
timeout
;
if
(
timeout_
>=
0
)
{
timeout
.
tv_sec
=
timeout_
/
1000
;
timeout
.
tv_usec
=
timeout_
%
1000
*
1000
;
}
#ifdef ZMQ_HAVE_WINDOWS
int
rc
=
select
(
0
,
&
fds
,
NULL
,
NULL
,
timeout_
>=
0
?
&
timeout
:
NULL
);
int
rc
=
select
(
0
,
fds
.
get
(),
NULL
,
NULL
,
timeout_
>=
0
?
&
timeout
:
NULL
);
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#else
int
rc
=
select
(
_r
+
1
,
&
fds
,
NULL
,
NULL
,
timeout_
>=
0
?
&
timeout
:
NULL
);
int
rc
=
select
(
_r
+
1
,
fds
.
get
(),
NULL
,
NULL
,
timeout_
>=
0
?
&
timeout
:
NULL
);
if
(
unlikely
(
rc
<
0
))
{
errno_assert
(
errno
==
EINTR
);
return
-
1
;
...
...
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