summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
-rw-r--r--lib/libpthread/thread/thr_sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index 58d8e9d..c0fbfd1 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -243,8 +243,10 @@ _thread_signal(pthread_t pthread, int sig)
sigaddset(&pthread->sigpend,sig);
/* Check if system calls are not restarted: */
- if ((_thread_sigact[sig - 1].sa_flags & SA_RESTART) == 0) {
+ if ((_thread_sigact[sig - 1].sa_flags & SA_RESTART) != 0) {
/*
+ * System calls are flagged for restart.
+ *
* Process according to thread state:
*/
switch (pthread->state) {
@@ -293,8 +295,6 @@ _thread_signal(pthread_t pthread, int sig)
}
} else {
/*
- * System calls are flagged for restart.
- *
* Process according to thread state:
*/
switch (pthread->state) {
OpenPOWER on IntegriCloud