Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <signal.h>
- void handler(int SIG);
- main()
- {
- signal(SIGUSR1, handler);
- while(1);
- }
- void handler(int SIG)
- {
- printf("\n[HANDLER] Signal SIGUSR1 Received.\n");
- fflush(stdout);
- }
Add Comment
Please, Sign In to add comment