]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't abort with GTK when a tty is opened.
authorKaroly Lorentey <lorentey@elte.hu>
Tue, 8 Mar 2005 02:17:02 +0000 (02:17 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Tue, 8 Mar 2005 02:17:02 +0000 (02:17 +0000)
* 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

index 581a225c33b0acf5e39f39973bbd674622e747e1..ccef0e2947c468c6fa407a27e2a88137cb924dbb 100644 (file)
@@ -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);