changeset 83266:e5edfda9b768

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
author Karoly Lorentey <lorentey@elte.hu>
date Tue, 08 Mar 2005 02:17:02 +0000
parents 49a45eb55f63
children c7d2b6ee3a80
files src/sysdep.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);