diff options
| author | 2002-11-05 22:19:55 +0000 | |
|---|---|---|
| committer | 2002-11-05 22:19:55 +0000 | |
| commit | a04bf6e3c68b13ba327bbea611ce4eb0077d850c (patch) | |
| tree | 1f337008ce2905978f12317a8d4fd0dfc618fcd8 /lib/libc/stdlib/abort.c | |
| parent | Updated from ftp.internic.net (diff) | |
| download | wireguard-openbsd-a04bf6e3c68b13ba327bbea611ce4eb0077d850c.tar.xz wireguard-openbsd-a04bf6e3c68b13ba327bbea611ce4eb0077d850c.zip | |
thread safe libc -- 2nd try. OK miod@, millert@
Thanks to miod@ for m68k and vax fixes
Diffstat (limited to 'lib/libc/stdlib/abort.c')
| -rw-r--r-- | lib/libc/stdlib/abort.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c index 7252cd8a8b2..a833a1a8b78 100644 --- a/lib/libc/stdlib/abort.c +++ b/lib/libc/stdlib/abort.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: abort.c,v 1.10 2002/11/03 23:58:39 marc Exp $"; +static char *rcsid = "$OpenBSD: abort.c,v 1.11 2002/11/05 22:19:55 marc Exp $"; #endif /* LIBC_SCCS and not lint */ #include <signal.h> @@ -55,11 +55,7 @@ abort() * any errors -- X311J doesn't allow abort to return anyway. */ sigdelset(&mask, SIGABRT); -#ifdef _THREAD_SAFE (void)_thread_sys_sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); -#else /* _THREAD_SAFE */ - (void)sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); -#endif /* _THREAD_SAFE */ /* * POSIX requires we flush stdio buffers on abort @@ -80,11 +76,7 @@ abort() * it again, only harder. */ (void)signal(SIGABRT, SIG_DFL); -#ifdef _THREAD_SAFE (void)_thread_sys_sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); -#else /* _THREAD_SAFE */ - (void)sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL); -#endif /* _THREAD_SAFE */ (void)kill(getpid(), SIGABRT); exit(1); } |
