Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1efa2983
Commit
1efa2983
authored
Jan 09, 1996
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): In batch mode, don't handle SIGHUP if was ignored.
Block it while we decide what to do.
parent
ced1d19a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/emacs.c
src/emacs.c
+17
-2
No files found.
src/emacs.c
View file @
1efa2983
...
...
@@ -646,6 +646,22 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
init_signals
();
#endif
/* Don't catch SIGHUP if dumping. */
if
(
1
#ifndef CANNOT_DUMP
&&
initialized
#endif
)
{
sigblockx
(
SIGHUP
);
/* In --batch mode, don't catch SIGHUP if already ignored.
That makes nohup work. */
if
(
!
noninteractive
||
signal
(
SIGHUP
,
SIG_IGN
)
!=
SIG_IGN
)
signal
(
SIGHUP
,
fatal_error_signal
);
sigunblockx
(
SIGHUP
);
}
if
(
#ifndef CANNOT_DUMP
!
noninteractive
||
initialized
...
...
@@ -654,10 +670,9 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
#endif
)
{
/* Don't catch these signals in batch mode if
not initialized
.
/* Don't catch these signals in batch mode if
dumping
.
On some machines, this sets static data that would make
signal fail to work right when the dumped Emacs is run. */
signal
(
SIGHUP
,
fatal_error_signal
);
signal
(
SIGQUIT
,
fatal_error_signal
);
signal
(
SIGILL
,
fatal_error_signal
);
signal
(
SIGTRAP
,
fatal_error_signal
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment