Lines Matching refs:sa
42 struct sigaction sa, sa0; in main() local
44 sa.sa_handler = SIG_IGN; in main()
45 sigemptyset(&sa.sa_mask); in main()
46 sigaddset(&sa.sa_mask, SIGHUP); in main()
47 sigaddset(&sa.sa_mask, SIGINT); in main()
48 sa.sa_flags = SA_RESTART; in main()
49 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
51 sa.sa_handler = handle_signal; in main()
52 sigemptyset(&sa.sa_mask); in main()
53 sigaddset(&sa.sa_mask, SIGQUIT); in main()
54 sigaddset(&sa.sa_mask, SIGTERM); in main()
55 sa.sa_flags = SA_SIGINFO; in main()
56 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
58 sa.sa_handler = SIG_DFL; in main()
59 sigemptyset(&sa.sa_mask); in main()
60 sa.sa_flags = 0; in main()
61 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()
63 sigfillset(&sa.sa_mask); in main()
64 sigdelset(&sa.sa_mask, SIGHUP); in main()
65 assert(!sigaction(SIGUSR2, &sa, &sa0)); in main()