diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2015-08-10 17:02:42 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2015-08-10 17:02:42 +0000 |
commit | 3d40192d3d7e80dc2ba0283cf11575eab96b808f (patch) | |
tree | 2340df8f93e6b38720ef75a0675c8ec17b370255 /lib/libthr/thread/thr_sig.c | |
parent | 97e2b41abf382be97e5803a1c04a01c5c5a77ce6 (diff) |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_sig.c')
-rw-r--r-- | lib/libthr/thread/thr_sig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index a6d021fed31d..ebb6c58a4bb6 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -30,6 +30,7 @@ #include <sys/param.h> #include <sys/types.h> #include <sys/signalvar.h> +#include <sys/syscall.h> #include <signal.h> #include <errno.h> #include <stdlib.h> @@ -257,7 +258,7 @@ handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp) /* reschedule cancellation */ check_cancel(curthread, &uc2); errno = err; - __sys_sigreturn(&uc2); + syscall(SYS_sigreturn, &uc2); } void |