summaryrefslogtreecommitdiff
path: root/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'pty.c')
-rw-r--r--pty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pty.c b/pty.c
index cbbe5845e..04004d20f 100644
--- a/pty.c
+++ b/pty.c
@@ -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();