Browse Source

qnx: sigaction: do not set SA_RESTART flag

because it is not available in QNX

Change-Id: I94a7586c148aa4f9b6cd6fef98a8637e7fea717c
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
pull/463/head
Timo Wischer 6 years ago
parent
commit
8521b9855a
2 changed files with 6 additions and 1 deletions
  1. +4
    -1
      common/JackControlAPI.cpp
  2. +2
    -0
      common/netjack_packet.c

+ 4
- 1
common/JackControlAPI.cpp View File

@@ -663,7 +663,10 @@ jackctl_setup_signals(
sigfillset(&allsignals);
action.sa_handler = signal_handler;
action.sa_mask = allsignals;
action.sa_flags = SA_RESTART|SA_RESETHAND;
action.sa_flags = SA_RESETHAND;
#ifndef __QNXNTO__
action.sa_flags |= SA_RESTART;
#endif

for (i = 1; i < NSIG; i++)
{


+ 2
- 0
common/netjack_packet.c View File

@@ -428,7 +428,9 @@ netjack_poll (int sockfd, int timeout)

action.sa_handler = SIG_DFL;
action.sa_mask = sigmask;
#ifndef __QNXNTO__
action.sa_flags = SA_RESTART;
#endif

for (i = 1; i < NSIG; i++)
if (sigismember (&sigmask, i))


Loading…
Cancel
Save