Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <unistd.h>
- #include <signal.h>
- #include <stdlib.h>
- void sig_handler(int signo)
- {
- if (signo == SIGHUP)
- exit(0);
- }
- int main()
- {
- printf("OK\n");
- while(1)
- sleep(1);
- exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement