summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nohup.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nohup.c b/src/nohup.c
index f476d8483..c2b83c90e 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -158,18 +158,7 @@ main (int argc, char **argv)
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;