rem: sigact.sa_handler = SIG_DFL; sigemptyset (&sigact.sa_mask); sigact.sa_flags = 0; sigaction (sig, &sigact, NULL); #else
add: delete_all_files ();
context: interrupt_handler (int sig){#ifdef SA_NOCLDSTOP  struct sigaction sigact;  sigact.sa_handler = SIG_DFL;  sigemptyset (&sigact.sa_mask);  sigact.sa_flags = 0;  sigaction (sig, &sigact, NULL);#else  signal (sig, SIG_DFL);#endif  cleanup ();  raise (sig);}