aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-08 02:17:02 +0000
committerKaroly Lorentey2005-03-08 02:17:02 +0000
commit3453bb3a36766b297909a2b1aae2681258ab3118 (patch)
tree65ab3c1ee4b83768a0a35722931e20a9c759de8d /src
parent83dcc67c3f210b9e381d67261c4072fd85362805 (diff)
downloademacs-3453bb3a36766b297909a2b1aae2681258ab3118.tar.gz
emacs-3453bb3a36766b297909a2b1aae2681258ab3118.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c4
1 files changed, 4 insertions, 0 deletions
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)
1124 int me = getpid (); 1124 int me = getpid ();
1125 1125
1126 setpgrp (0, inherited_pgroup); 1126 setpgrp (0, inherited_pgroup);
1127#if 0
1128 /* XXX inherited_pgroup should not be zero here, but GTK seems to
1129 mess this up. */
1127 if (! inherited_pgroup) 1130 if (! inherited_pgroup)
1128 abort (); /* Should not happen. */ 1131 abort (); /* Should not happen. */
1132#endif
1129 if (inherited_pgroup != me) 1133 if (inherited_pgroup != me)
1130 EMACS_SET_TTY_PGRP (fd, &me); /* XXX This only works on the controlling tty. */ 1134 EMACS_SET_TTY_PGRP (fd, &me); /* XXX This only works on the controlling tty. */
1131 setpgrp (0, me); 1135 setpgrp (0, me);