Commit 3453bb3a authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Don't abort with GTK when a tty is opened.

* src/sysdep.c (narrow_foreground_group): Don't abort if inherited_pgroup
  is zero.

parent 83dcc67c
......@@ -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. */
if (inherited_pgroup != me)
EMACS_SET_TTY_PGRP (fd, &me); /* XXX This only works on the controlling tty. */
setpgrp (0, me);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment