diff 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
line wrap: on
line diff
--- a/README.multi-tty	Tue Feb 03 11:25:07 2004 +0000
+++ b/README.multi-tty	Sun Feb 08 15:44:33 2004 +0000
@@ -164,11 +164,11 @@
 Robert J. Chassel <bob at rattlesnake dot com>
 Romain Francoise <romain at orekobech dot com>
 Ami Fischman <ami at fischman dot org>
+Istvan Marko <mi-mtty ar kismala dot com>
 Dan Nicolaescu <dann at ics dot uci dot edu>
 
 Richard Stallman was kind enough to review my patches.
 
-
 CHANGELOG
 ---------
 
@@ -176,6 +176,12 @@
 
 THINGS TO DO
 ------------
+
+** There is a flicker during the startup of `emacs -nw'; it's as if
+   the terminal is initialized, reset and then initialialized again.
+   Debug this.  (Hint: narrow_foreground_group is called twice during
+   startup.)
+
 ** Dan Nicolaescu (dann at ics dot uci dot edu) suggests that -nw
    should be added as an alias for -t in emacsclient.  Good idea.
    (Alas, implementing this is not trivial, getopt_long does not seem
@@ -649,4 +655,11 @@
 
    (Fixed.)
 
+-- Istvan Marko reported that Emacs hang on ttys if it was started
+   from a shell script.
+
+   (Fixed.  There was a bug in the multi-tty version of
+   narrow_foreground_group.  tcsetpgrp blocks if it is called from a
+   process that is not in the same process group as the tty.)
+
 ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d