Mercurial > emacs
comparison src/keyboard.c @ 83026:77cfe20c109c
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 25 Jan 2004 00:48:47 +0000 |
parents | c66ebcc29777 |
children | 5b06ac722eb1 |
comparison
equal
deleted
inserted
replaced
83025:c66ebcc29777 | 83026:77cfe20c109c |
---|---|
10140 GCPRO1 (stuffstring); | 10140 GCPRO1 (stuffstring); |
10141 get_tty_size (fileno (TTY_INPUT (CURTTY ())), &old_width, &old_height); | 10141 get_tty_size (fileno (TTY_INPUT (CURTTY ())), &old_width, &old_height); |
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 (); |
10150 else | 10150 else |
10151 sys_suspend (); | 10151 sys_suspend (); |