comparison src/keyboard.c @ 83153:8a11bf743e66

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
author Karoly Lorentey <lorentey@elte.hu>
date Tue, 08 Jun 2004 00:41:04 +0000
parents f004099bad61
children 33be94fa3695
comparison
equal deleted inserted replaced
83152:632f9d4fdffb 83153:8a11bf743e66
10326 display = get_named_tty_display (NULL); 10326 display = get_named_tty_display (NULL);
10327 if (!display) 10327 if (!display)
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 {
10335 /* Otherwise, the SIGINT was probably generated by C-g. */ 10335 /* Otherwise, the SIGINT was probably generated by C-g. */
10336 10336