xref: /csrg-svn/lib/libc/stdlib/abort.c (revision 21338)
1*21338Sdist /*
2*21338Sdist  * Copyright (c) 1980 Regents of the University of California.
3*21338Sdist  * All rights reserved.  The Berkeley software License Agreement
4*21338Sdist  * specifies the terms and conditions for redistribution.
5*21338Sdist  */
617866Sralph 
7*21338Sdist #ifndef lint
8*21338Sdist static char sccsid[] = "@(#)abort.c	5.1 (Berkeley) 05/30/85";
9*21338Sdist #endif not lint
10*21338Sdist 
1117866Sralph /* C library -- abort */
1217866Sralph 
1317866Sralph #include "signal.h"
1417866Sralph 
1517866Sralph abort()
1617866Sralph {
1717866Sralph 	sigblock(~0);
1817866Sralph 	signal(SIGILL, SIG_DFL);
1917866Sralph 	sigsetmask(~sigmask(SIGILL));
2017866Sralph 	kill(0, SIGILL);
2117866Sralph }
22