af22b7ea85
breaks the dependency between exit/atexit and stdio. Buffers are no longer flushed on abort() (because it's pretty risky). Move the relevant functions into sys/core.
21 lines
375 B
C
21 lines
375 B
C
/*
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
*/
|
|
/* $Id$ */
|
|
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <signal.h>
|
|
|
|
#if ACKCONF_WANT_EMULATED_RAISE
|
|
|
|
int raise(int sig)
|
|
{
|
|
if (sig < 0 || sig > _NSIG)
|
|
return -1;
|
|
return kill(getpid(), sig);
|
|
}
|
|
|
|
#endif
|