Commit | Line | Data |
---|---|---|
bb0cfa24 | 1 | /* |
007be9f5 | 2 | * Copyright (c) 1985 Regents of the University of California. |
bb0cfa24 DF |
3 | * All rights reserved. The Berkeley software License Agreement |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
2ce81398 | 7 | #if defined(LIBC_SCCS) && !defined(lint) |
bce54f9f | 8 | static char sccsid[] = "@(#)abort.c 5.4 (Berkeley) %G%"; |
2ce81398 | 9 | #endif LIBC_SCCS and not lint |
0df78ea3 RC |
10 | |
11 | /* C library -- abort */ | |
12 | ||
13 | #include "signal.h" | |
14 | ||
15 | abort() | |
16 | { | |
bce54f9f | 17 | sigblock(~0L); |
0df78ea3 RC |
18 | signal(SIGILL, SIG_DFL); |
19 | sigsetmask(~sigmask(SIGILL)); | |
007be9f5 | 20 | kill(getpid(), SIGILL); |
0df78ea3 | 21 | } |