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
d9ff3489
Commit
d9ff3489
authored
Nov 05, 2016
by
Constantin Rack
Committed by
GitHub
Nov 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2196 from bluca/kfreebsd
Problem: some errors on Debian + kFreeBSD
parents
6585aeab
43f3cc5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
stream_engine.cpp
src/stream_engine.cpp
+6
-0
thread.cpp
src/thread.cpp
+6
-0
No files found.
src/stream_engine.cpp
View file @
d9ff3489
...
...
@@ -156,6 +156,12 @@ zmq::stream_engine_t::~stream_engine_t ()
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#else
int
rc
=
close
(
s
);
#ifdef __FreeBSD_kernel__
// FreeBSD may return ECONNRESET on close() under load but this is not
// an error.
if
(
rc
==
-
1
&&
errno
==
ECONNRESET
)
rc
=
0
;
#endif
errno_assert
(
rc
==
0
);
#endif
s
=
retired_fd
;
...
...
src/thread.cpp
View file @
d9ff3489
...
...
@@ -145,6 +145,12 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
#endif
rc
=
pthread_setschedparam
(
descriptor
,
policy
,
&
param
);
#ifdef __FreeBSD_kernel__
// If this feature is unavailable at run-time, don't abort.
if
(
rc
==
ENOSYS
)
return
;
#endif
posix_assert
(
rc
);
#else
...
...
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