Skip to content

Commit 73ca180

Browse files
committed
RTEMS has no SA_RESTART
as RTEMS has no syscalls to restart.
1 parent aba6548 commit 73ca180

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

signal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ evsig_set_handler_(struct event_base *base,
254254
#ifdef EVENT__HAVE_SIGACTION
255255
memset(&sa, 0, sizeof(sa));
256256
sa.sa_handler = handler;
257+
#ifdef SA_RESTART
257258
sa.sa_flags |= SA_RESTART;
259+
#endif
258260
sigfillset(&sa.sa_mask);
259261

260262
if (sigaction(evsignal, &sa, sig->sh_old[evsignal]) == -1) {

0 commit comments

Comments
 (0)