comparison README.multi-tty @ 83035:fcf6fc349e0d

Don't hang on the tty if called from a shell script. src/sysdep.c (narrow_foreground_group): Set the process group to inherited_pgroup before calling EMACS_SET_TTY_PGRP. Removed confusing inherited_pgroup initialization (it is done in emacs.c). (Reported by Istvan Marko <mi-mtty at kismala dot com>.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-75
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 08 Feb 2004 15:44:33 +0000
parents b8237c556f0e
children fc638739c70f
comparison
equal deleted inserted replaced
83034:759de0673597 83035:fcf6fc349e0d
162 to the project by testing, bug reports, and suggestions. Thanks! 162 to the project by testing, bug reports, and suggestions. Thanks!
163 163
164 Robert J. Chassel <bob at rattlesnake dot com> 164 Robert J. Chassel <bob at rattlesnake dot com>
165 Romain Francoise <romain at orekobech dot com> 165 Romain Francoise <romain at orekobech dot com>
166 Ami Fischman <ami at fischman dot org> 166 Ami Fischman <ami at fischman dot org>
167 Istvan Marko <mi-mtty ar kismala dot com>
167 Dan Nicolaescu <dann at ics dot uci dot edu> 168 Dan Nicolaescu <dann at ics dot uci dot edu>
168 169
169 Richard Stallman was kind enough to review my patches. 170 Richard Stallman was kind enough to review my patches.
170
171 171
172 CHANGELOG 172 CHANGELOG
173 --------- 173 ---------
174 174
175 See arch logs. 175 See arch logs.
176 176
177 THINGS TO DO 177 THINGS TO DO
178 ------------ 178 ------------
179
180 ** There is a flicker during the startup of `emacs -nw'; it's as if
181 the terminal is initialized, reset and then initialialized again.
182 Debug this. (Hint: narrow_foreground_group is called twice during
183 startup.)
184
179 ** Dan Nicolaescu (dann at ics dot uci dot edu) suggests that -nw 185 ** Dan Nicolaescu (dann at ics dot uci dot edu) suggests that -nw
180 should be added as an alias for -t in emacsclient. Good idea. 186 should be added as an alias for -t in emacsclient. Good idea.
181 (Alas, implementing this is not trivial, getopt_long does not seem 187 (Alas, implementing this is not trivial, getopt_long does not seem
182 to support two-letter ``short'' options.) 188 to support two-letter ``short'' options.)
183 189
647 terminal device that is the controlling tty of the Emacs process 653 terminal device that is the controlling tty of the Emacs process
648 gives unexpected results. 654 gives unexpected results.
649 655
650 (Fixed.) 656 (Fixed.)
651 657
658 -- Istvan Marko reported that Emacs hang on ttys if it was started
659 from a shell script.
660
661 (Fixed. There was a bug in the multi-tty version of
662 narrow_foreground_group. tcsetpgrp blocks if it is called from a
663 process that is not in the same process group as the tty.)
664
652 ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d 665 ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d