mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
commit
99c527702b
@ -149,7 +149,7 @@ zmq::stream_engine_t::~stream_engine_t ()
|
|||||||
wsa_assert (rc != SOCKET_ERROR);
|
wsa_assert (rc != SOCKET_ERROR);
|
||||||
#else
|
#else
|
||||||
int rc = close (s);
|
int rc = close (s);
|
||||||
#ifdef __FreeBSD_kernel__
|
#if defined(__FreeBSD_kernel__) || defined (__FreeBSD__)
|
||||||
// FreeBSD may return ECONNRESET on close() under load but this is not
|
// FreeBSD may return ECONNRESET on close() under load but this is not
|
||||||
// an error.
|
// an error.
|
||||||
if (rc == -1 && errno == ECONNRESET)
|
if (rc == -1 && errno == ECONNRESET)
|
||||||
|
@ -152,7 +152,7 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
|
|||||||
|
|
||||||
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
rc = pthread_setschedparam(descriptor, policy, ¶m);
|
||||||
|
|
||||||
#ifdef __FreeBSD_kernel__
|
#if defined(__FreeBSD_kernel__) || defined (__FreeBSD__)
|
||||||
// If this feature is unavailable at run-time, don't abort.
|
// If this feature is unavailable at run-time, don't abort.
|
||||||
if(rc == ENOSYS) return;
|
if(rc == ENOSYS) return;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user