if (sigaction(i, &sa, NULL) && errno != EINVAL)
fprintf(stderr, "sigaction(%i) failed: %s\n", i, strerror(errno));
for (i = SIGRTMIN; i <= SIGRTMAX; ++i)
if (sigaction(i, &sa, NULL) && errno != EINVAL)
fprintf(stderr, "sigaction(%i) failed: %s\n", i, strerror(errno));
for (i = SIGRTMIN; i <= SIGRTMAX; ++i)