Use simpler "signal (sig, SIG_IGN)" rather than sigaction equivalent.
error (NOHUP_FAILURE, errno, _("failed to redirect standard error"));
}
- /* Ignore hang-up signals. */
- {
-#ifdef _POSIX_SOURCE
- struct sigaction sigact;
- sigact.sa_handler = SIG_IGN;
- sigemptyset (&sigact.sa_mask);
- sigact.sa_flags = 0;
- sigaction (SIGHUP, &sigact, NULL);
-#else
- signal (SIGHUP, SIG_IGN);
-#endif
- }
+ signal (SIGHUP, SIG_IGN);
{
int exit_status;