summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshpty.c b/sshpty.c
index 71b8daa0d..a3d0b8dfc 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -130,10 +130,10 @@ pty_make_controlling_tty(int *ttyfd, const char *tty)
130 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) 130 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
131 error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); 131 error("ioctl(TIOCSCTTY): %.100s", strerror(errno));
132#endif /* TIOCSCTTY */ 132#endif /* TIOCSCTTY */
133#ifdef HAVE_NEWS4 133#ifdef NEED_SETPGRP
134 if (setpgrp(0,0) < 0) 134 if (setpgrp(0,0) < 0)
135 error("SETPGRP %s",strerror(errno)); 135 error("SETPGRP %s",strerror(errno));
136#endif /* HAVE_NEWS4 */ 136#endif /* NEED_SETPGRP */
137#ifdef USE_VHANGUP 137#ifdef USE_VHANGUP
138 old = signal(SIGHUP, SIG_IGN); 138 old = signal(SIGHUP, SIG_IGN);
139 vhangup(); 139 vhangup();