summaryrefslogtreecommitdiff
path: root/lib/libc_r/TEST/test_pause.c
blob: ab71982d7d694907302dd0bbeeca0359969a1f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include "test.h"

foo(int sig) 
{
	printf("%s\n", strsignal(sig));
	return;
}

main()
{
	sigset_t all;

	CHECKe(signal(1, foo));
	CHECKe(sigfillset(&all));
	CHECKe(sigprocmask(SIG_BLOCK, &all, NULL));
	CHECKe(pause());
	SUCCEED;
}