From 73ca1801885922c49a39643bb56b3abd0e4f8ca9 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 21 Oct 2019 11:41:19 -0700 Subject: [PATCH] RTEMS has no SA_RESTART as RTEMS has no syscalls to restart. --- signal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/signal.c b/signal.c index ad7ab643..9a232710 100644 --- a/signal.c +++ b/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) {