19 sigemptyset (&sa
.sa_mask
);
21 if (sigaction (SIGUSR1
, &sa
, NULL
) < 0)
23 printf ("sigaction failed: %m\n");
26 if (raise (SIGUSR1
) < 0)
28 printf ("first raise failed: %m\n");
31 if (raise (SIGUSR1
) < 0)
33 printf ("second raise failed: %m\n");
38 printf ("signal handler not called 2 times\n");