SHARE
TWEET

Untitled

razvanth21 Dec 12th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void func(int signum)
  2. {
  3.     printf("1");
  4.     alarm(1);
  5. }
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9.     struct sigaction sa;
  10.  
  11.     sa.sa_handler = func;
  12.     sigaction(SIGALRM, &sa, NULL);
  13.  
  14.     alarm(1);
  15.     while (1);
  16.  
  17.     return 0;
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top