From: Karoly Lorentey Date: Tue, 8 Mar 2005 02:17:02 +0000 (+0000) Subject: Don't abort with GTK when a tty is opened. X-Git-Tag: emacs-pretest-23.0.90~11236^2~141^2~294 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3453bb3a36766b297909a2b1aae2681258ab3118;p=emacs.git Don't abort with GTK when a tty is opened. * src/sysdep.c (narrow_foreground_group): Don't abort if inherited_pgroup is zero. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-306 --- diff --git a/src/sysdep.c b/src/sysdep.c index 581a225c33b..ccef0e2947c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1124,8 +1124,12 @@ narrow_foreground_group (int fd) int me = getpid (); setpgrp (0, inherited_pgroup); +#if 0 + /* XXX inherited_pgroup should not be zero here, but GTK seems to + mess this up. */ if (! inherited_pgroup) abort (); /* Should not happen. */ +#endif if (inherited_pgroup != me) EMACS_SET_TTY_PGRP (fd, &me); /* XXX This only works on the controlling tty. */ setpgrp (0, me);