diff options
Diffstat (limited to 'pty.c')
-rw-r--r-- | pty.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -242,6 +242,10 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname) | |||
242 | */ | 242 | */ |
243 | ioctl(*ttyfd, TIOCSCTTY, NULL); | 243 | ioctl(*ttyfd, TIOCSCTTY, NULL); |
244 | #endif /* TIOCSCTTY */ | 244 | #endif /* TIOCSCTTY */ |
245 | #ifdef HAVE_NEWS4 | ||
246 | if (setpgrp(0,0) < 0) | ||
247 | error("SETPGRP %s",strerror(errno)); | ||
248 | #endif /* HAVE_NEWS4 */ | ||
245 | #ifdef USE_VHANGUP | 249 | #ifdef USE_VHANGUP |
246 | old = signal(SIGHUP, SIG_IGN); | 250 | old = signal(SIGHUP, SIG_IGN); |
247 | vhangup(); | 251 | vhangup(); |