aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-01-25 00:48:47 +0000
committerKaroly Lorentey2004-01-25 00:48:47 +0000
commit017bbc62df93de9f88171fc8ffb92c2e616d238b (patch)
tree237e41041d2a582bd7eb280bfc8d668166e1ff9e /src
parentda8e11156a5a22f6e4cdab41b4b797aaee10bd6e (diff)
downloademacs-017bbc62df93de9f88171fc8ffb92c2e616d238b.tar.gz
emacs-017bbc62df93de9f88171fc8ffb92c2e616d238b.zip
Fixed unsafe and incorrect use of record_unwind_protect in Fsuspend_emacs.
src/keyboard.c (Fsuspend_emacs): Pass init_all_sys_modes, not init_sys_modes to record_unwind_protect. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-66
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b6f1dfa071f..4e0786ec1c9 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10142,8 +10142,8 @@ On such systems, Emacs starts a subshell instead of suspending. */)
10142 reset_all_sys_modes (); 10142 reset_all_sys_modes ();
10143 /* sys_suspend can get an error if it tries to fork a subshell 10143 /* sys_suspend can get an error if it tries to fork a subshell
10144 and the system resources aren't available for that. */ 10144 and the system resources aren't available for that. */
10145 record_unwind_protect ((Lisp_Object (*) P_ ((Lisp_Object))) init_sys_modes, 10145 record_unwind_protect ((Lisp_Object (*) P_ ((Lisp_Object))) init_all_sys_modes,
10146 (Lisp_Object)CURTTY()); /* XXX */ 10146 Qnil);
10147 stuff_buffered_input (stuffstring); 10147 stuff_buffered_input (stuffstring);
10148 if (cannot_suspend) 10148 if (cannot_suspend)
10149 sys_subshell (); 10149 sys_subshell ();