diff options
Diffstat (limited to 'src')
| -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 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); |