Guest User

Untitled

a guest
May 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <signal.h>
  4.  
  5. void handler(int SIG);
  6.  
  7. main()
  8. {
  9. signal(SIGUSR1, handler);
  10. while(1);
  11. }
  12.  
  13. void handler(int SIG)
  14. {
  15. printf("\n[HANDLER] Signal SIGUSR1 Received.\n");
  16. fflush(stdout);
  17. }
Add Comment
Please, Sign In to add comment