This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <stdio.h> | |
void sig_handler(int sig) {exit(0);}; | |
int main () { | |
signal(SIGTERM,sig_handler); | |
pid_t pid_v; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <setjmp.h> | |
int J(jmp_buf x, int y) { | |
longjmp(x,y); | |
return 0; | |
} | |
int main(int argc, char **argv) | |
{ |
NewerOlder