diff options
Diffstat (limited to 'mit-pthreads/tests/test_pause.c')
-rw-r--r-- | mit-pthreads/tests/test_pause.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mit-pthreads/tests/test_pause.c b/mit-pthreads/tests/test_pause.c new file mode 100644 index 00000000000..46c5080e43e --- /dev/null +++ b/mit-pthreads/tests/test_pause.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <signal.h> + +foo(int sig) +{ + return; +} + +main() +{ + sigset_t all; + + signal (1, foo); + sigfillset(&all); + sigprocmask(SIG_BLOCK, &all, NULL); + printf("Begin pause\n"); + pause(); + printf("Done pause\n"); +} |