mariadb/mit-pthreads/tests/test_pause.c
bk@work.mysql.com f4c589ff6c Import changeset
2000-07-31 21:29:14 +02:00

19 lines
230 B
C

#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");
}