Don't core dump on SIGINT when there is no frame on the controlling tty.
authorKaroly Lorentey <lorentey@elte.hu>
Tue, 8 Jun 2004 00:41:04 +0000 (00:41 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Tue, 8 Jun 2004 00:41:04 +0000 (00:41 +0000)
* 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

src/keyboard.c

index bf083c2..cd3b4f6 100644 (file)
@@ -10328,7 +10328,7 @@ interrupt_signal (signalnum)    /* If we don't have an argument, */
     {
       /* If there are no frames there, let's pretend that we are a
          well-behaving UN*X program and quit. */
-      Fkill_emacs (Qnil);
+      fatal_error_signal (getpid (), SIGTERM);
     }
   else
     {