mirror of
https://github.com/zeromq/libzmq.git
synced 2025-09-20 12:59:33 +02:00
z/OS: signal(SIGPIPE, SIG_IGN) for tests
Updated: tests/testutil.hpp: Add signal(SIGPIPE, SIG_IGN) to setup_test_environment(), on z/OS (__MVS__)
This commit is contained in:
parent
19808ff878
commit
fc80e8cda1
@ -271,6 +271,11 @@ void setup_test_environment()
|
||||
// abort test after 60 seconds
|
||||
alarm(60);
|
||||
#endif
|
||||
#if defined __MVS__
|
||||
// z/OS UNIX System Services: Ignore SIGPIPE during test runs, as a
|
||||
// workaround for no SO_NOGSIGPIPE socket option.
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Provide portable millisecond sleep
|
||||
|
Loading…
x
Reference in New Issue
Block a user