# HG changeset patch # User Karoly Lorentey # Date 1110248222 0 # Node ID e5edfda9b76836560af99345a626ff1675b62a2d # Parent 49a45eb55f632431d8081a473c190e8e69533882 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 -r 49a45eb55f63 -r e5edfda9b768 src/sysdep.c --- a/src/sysdep.c Mon Mar 07 16:51:07 2005 +0000 +++ b/src/sysdep.c Tue Mar 08 02:17:02 2005 +0000 @@ -1124,8 +1124,12 @@ 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);