From 3453bb3a36766b297909a2b1aae2681258ab3118 Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Tue, 8 Mar 2005 02:17:02 +0000 Subject: 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 --- src/sysdep.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/sysdep.c b/src/sysdep.c index 581a225c33..ccef0e2947 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); -- cgit v1.2.3