diff options
Diffstat (limited to 'src/lib/libc/stdlib')
| -rw-r--r-- | src/lib/libc/stdlib/abort.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/abort.c b/src/lib/libc/stdlib/abort.c index 903bfa78e1..710cd7da47 100644 --- a/src/lib/libc/stdlib/abort.c +++ b/src/lib/libc/stdlib/abort.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: abort.c,v 1.18 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: abort.c,v 1.19 2015/10/23 04:39:24 guenther Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 1985 Regents of the University of California. | 3 | * Copyright (c) 1985 Regents of the University of California. |
| 4 | * All rights reserved. | 4 | * All rights reserved. |
| @@ -34,7 +34,6 @@ | |||
| 34 | #include "thread_private.h" | 34 | #include "thread_private.h" |
| 35 | #include "atexit.h" | 35 | #include "atexit.h" |
| 36 | 36 | ||
| 37 | int _thread_sys_sigprocmask(int, const sigset_t *, sigset_t *); | ||
| 38 | 37 | ||
| 39 | void | 38 | void |
| 40 | abort(void) | 39 | abort(void) |
| @@ -48,7 +47,7 @@ abort(void) | |||
| 48 | * any errors -- X311J doesn't allow abort to return anyway. | 47 | * any errors -- X311J doesn't allow abort to return anyway. |
| 49 | */ | 48 | */ |
| 50 | sigdelset(&mask, SIGABRT); | 49 | sigdelset(&mask, SIGABRT); |
| 51 | (void)_thread_sys_sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); | 50 | (void)sigprocmask(SIG_SETMASK, &mask, NULL); |
| 52 | 51 | ||
| 53 | (void)raise(SIGABRT); | 52 | (void)raise(SIGABRT); |
| 54 | 53 | ||
| @@ -57,7 +56,7 @@ abort(void) | |||
| 57 | * it again, only harder. | 56 | * it again, only harder. |
| 58 | */ | 57 | */ |
| 59 | (void)signal(SIGABRT, SIG_DFL); | 58 | (void)signal(SIGABRT, SIG_DFL); |
| 60 | (void)_thread_sys_sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); | 59 | (void)sigprocmask(SIG_SETMASK, &mask, NULL); |
| 61 | (void)raise(SIGABRT); | 60 | (void)raise(SIGABRT); |
| 62 | _exit(1); | 61 | _exit(1); |
| 63 | } | 62 | } |
