C89 and C99 define raise() in signal.h:
#include <signal.h>
int raise(int sig);
This function sends a signal to the calling process, and is equivalent to
kill(getpid(), sig);
If the platform supports threads, then the call is equivalent to
pthread_kill(pthread_self(), sig);
The return value is 0 on success, nonzero otherwise.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…