diff options
author | Karoly Lorentey <[email protected]> | 2005-03-08 02:17:02 +0000 |
---|---|---|
committer | Karoly Lorentey <[email protected]> | 2005-03-08 02:17:02 +0000 |
commit | 3453bb3a36766b297909a2b1aae2681258ab3118 (patch) | |
tree | 65ab3c1ee4b83768a0a35722931e20a9c759de8d /src/sysdep.c | |
parent | 83dcc67c3f210b9e381d67261c4072fd85362805 (diff) |
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: [email protected]/emacs--multi-tty--0--patch-306
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |