mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
RTEMS has no SA_RESTART
as RTEMS has no syscalls to restart.
This commit is contained in:
parent
aba6548c53
commit
73ca180188
2
signal.c
2
signal.c
@ -254,7 +254,9 @@ evsig_set_handler_(struct event_base *base,
|
||||
#ifdef EVENT__HAVE_SIGACTION
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.sa_handler = handler;
|
||||
#ifdef SA_RESTART
|
||||
sa.sa_flags |= SA_RESTART;
|
||||
#endif
|
||||
sigfillset(&sa.sa_mask);
|
||||
|
||||
if (sigaction(evsignal, &sa, sig->sh_old[evsignal]) == -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user