aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 35c8de4d730..9677d5103b5 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -675,13 +675,13 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
675#endif 675#endif
676 ) 676 )
677 { 677 {
678 sigblockx (SIGHUP); 678 sigblock (sigmask (SIGHUP));
679 /* In --batch mode, don't catch SIGHUP if already ignored. 679 /* In --batch mode, don't catch SIGHUP if already ignored.
680 That makes nohup work. */ 680 That makes nohup work. */
681 if (! noninteractive 681 if (! noninteractive
682 || signal (SIGHUP, SIG_IGN) != SIG_IGN) 682 || signal (SIGHUP, SIG_IGN) != SIG_IGN)
683 signal (SIGHUP, fatal_error_signal); 683 signal (SIGHUP, fatal_error_signal);
684 sigunblockx (SIGHUP); 684 sigunblock (sigmask (SIGHUP));
685 } 685 }
686 686
687 if ( 687 if (