summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-08-26 20:55:31 +0000
committerjb <jb@FreeBSD.org>1998-08-26 20:55:31 +0000
commit343f23c6e906a06f3a710b747835ac571e30bdf2 (patch)
treedce540a1ff8e8ba890d4d00d47b51a4bc543bf16
parent45be607d945adc5acb55189112419308142cc122 (diff)
downloadFreeBSD-src-343f23c6e906a06f3a710b747835ac571e30bdf2.zip
FreeBSD-src-343f23c6e906a06f3a710b747835ac571e30bdf2.tar.gz
Don't automatically restart syscalls for the signals that the thread
kernel needs.
-rw-r--r--lib/libc_r/uthread/uthread_sigaction.c2
-rw-r--r--lib/libc_r/uthread/uthread_signal.c2
-rw-r--r--lib/libkse/thread/thr_sigaction.c2
-rw-r--r--lib/libpthread/thread/thr_sigaction.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_sigaction.c b/lib/libc_r/uthread/uthread_sigaction.c
index 3538f27..40f3850 100644
--- a/lib/libc_r/uthread/uthread_sigaction.c
+++ b/lib/libc_r/uthread/uthread_sigaction.c
@@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
sig != SIGINFO) {
/* Initialise the global signal action structure: */
gact.sa_mask = act->sa_mask;
- gact.sa_flags = act->sa_flags | SA_RESTART;
+ gact.sa_flags = 0;
/*
* Check if the signal handler is being set to
diff --git a/lib/libc_r/uthread/uthread_signal.c b/lib/libc_r/uthread/uthread_signal.c
index cef725f..c9ece32 100644
--- a/lib/libc_r/uthread/uthread_signal.c
+++ b/lib/libc_r/uthread/uthread_signal.c
@@ -44,7 +44,7 @@ _thread_sys_signal(int s, sig_t a)
/* Initialise the signal action structure: */
sigemptyset(&sa.sa_mask);
sa.sa_handler = a;
- sa.sa_flags = SA_RESTART;
+ sa.sa_flags = 0;
/* Perform the sigaction syscall: */
if (_thread_sys_sigaction(s, &sa, &osa) < 0) {
diff --git a/lib/libkse/thread/thr_sigaction.c b/lib/libkse/thread/thr_sigaction.c
index 3538f27..40f3850 100644
--- a/lib/libkse/thread/thr_sigaction.c
+++ b/lib/libkse/thread/thr_sigaction.c
@@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
sig != SIGINFO) {
/* Initialise the global signal action structure: */
gact.sa_mask = act->sa_mask;
- gact.sa_flags = act->sa_flags | SA_RESTART;
+ gact.sa_flags = 0;
/*
* Check if the signal handler is being set to
diff --git a/lib/libpthread/thread/thr_sigaction.c b/lib/libpthread/thread/thr_sigaction.c
index 3538f27..40f3850 100644
--- a/lib/libpthread/thread/thr_sigaction.c
+++ b/lib/libpthread/thread/thr_sigaction.c
@@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
sig != SIGINFO) {
/* Initialise the global signal action structure: */
gact.sa_mask = act->sa_mask;
- gact.sa_flags = act->sa_flags | SA_RESTART;
+ gact.sa_flags = 0;
/*
* Check if the signal handler is being set to
OpenPOWER on IntegriCloud