summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_sig.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-06 07:02:27 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-06 07:02:27 +0000
commit717d1611f4e477ad98ad3cbed0adf6b168455d83 (patch)
tree242a9ba0cd97a3e8aa4ba0eeab4fd94fe7d0c8d9 /lib/libpthread/thread/thr_sig.c
parent9c727d2ca92826945a583d93d4ee78b148c08f83 (diff)
Notes
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 58d8e9d6fe74..c0fbfd1bce86 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) {