diff options
| author | Karoly Lorentey | 2004-06-08 00:41:04 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-06-08 00:41:04 +0000 |
| commit | 420a53224b336e79f74d87c25fdef72f5c84cf34 (patch) | |
| tree | f0c171497a82e3972b655de5451babd105ec1b3b /src | |
| parent | 6ea444cf387c4e5f19b0a42491aa3a487abcafb8 (diff) | |
| download | emacs-420a53224b336e79f74d87c25fdef72f5c84cf34.tar.gz emacs-420a53224b336e79f74d87c25fdef72f5c84cf34.zip | |
Don't core dump on SIGINT when there is no frame on the controlling tty.
* src/keyboard.c (interrupt_signal): Don't call Fkill_emacs from a
signal handler; use fatal_error_signal instead.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-193
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index bf083c23d66..cd3b4f6704c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -10328,7 +10328,7 @@ interrupt_signal (signalnum) /* If we don't have an argument, */ | |||
| 10328 | { | 10328 | { |
| 10329 | /* If there are no frames there, let's pretend that we are a | 10329 | /* If there are no frames there, let's pretend that we are a |
| 10330 | well-behaving UN*X program and quit. */ | 10330 | well-behaving UN*X program and quit. */ |
| 10331 | Fkill_emacs (Qnil); | 10331 | fatal_error_signal (getpid (), SIGTERM); |
| 10332 | } | 10332 | } |
| 10333 | else | 10333 | else |
| 10334 | { | 10334 | { |