aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-12 21:49:19 +0000
committerRichard M. Stallman1996-06-12 21:49:19 +0000
commit57e3d22a51e6bca0ff7bc94ed30739dafc09cb91 (patch)
tree39504a9912c20d5d0dec2839f2dbdc94d03c8f83 /src
parent2a5af1cf4fe26c2f7518e2be34380c7439dc5ca3 (diff)
downloademacs-57e3d22a51e6bca0ff7bc94ed30739dafc09cb91.tar.gz
emacs-57e3d22a51e6bca0ff7bc94ed30739dafc09cb91.zip
(main): For SIGHUP, use sigblock and sigunblock,
not sigblockx and sigunblockx.
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 (