1 2 3 4 5 6 7 8 9 10
//en.cppreference.com/w/c/program/SIG_strategies.html #include <signal.h> #include <stdio.h> int main(void) { /* using the default signal handler */ raise(SIGTERM); printf("Exit main()\n"); /* never reached */ }