Advertisement
wandrake

Untitled

Aug 24th, 2011
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. int signal_block_all() {
  2.     sigset_t set;
  3.  
  4.     ec_meno1( sigfillset(&set) );
  5.     ec_nzero( pthread_sigmask(SIG_BLOCK, &set, NULL) );
  6.  
  7.     return 0;
  8.  
  9. EC_CLEANUP_BGN
  10.     return -1;
  11. EC_CLEANUP_END
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement