summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-12-29 21:32:03 +0000
committerColin Watson <cjwatson@debian.org>2009-12-29 21:32:03 +0000
commit04942aa41fa94ec6f2c3ce1d348f600f31bb7c78 (patch)
treeaf8e928bd79d3f2d0219bb5b2c78b573ec31d94c /sshpty.c
parent9ad7b718d42e43f3a285fcbc8f91193931fce324 (diff)
parent16704d57999d987fb8d9ba53379841a79f016d67 (diff)
import openssh-4.2p1-gsskex-20050926-2.patch
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 efd1dfefa..36788c4d7 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -128,10 +128,10 @@ pty_make_controlling_tty(int *ttyfd, const char *tty)
128 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0) 128 if (ioctl(*ttyfd, TIOCSCTTY, NULL) < 0)
129 error("ioctl(TIOCSCTTY): %.100s", strerror(errno)); 129 error("ioctl(TIOCSCTTY): %.100s", strerror(errno));
130#endif /* TIOCSCTTY */ 130#endif /* TIOCSCTTY */
131#ifdef HAVE_NEWS4 131#ifdef NEED_SETPGRP
132 if (setpgrp(0,0) < 0) 132 if (setpgrp(0,0) < 0)
133 error("SETPGRP %s",strerror(errno)); 133 error("SETPGRP %s",strerror(errno));
134#endif /* HAVE_NEWS4 */ 134#endif /* NEED_SETPGRP */
135#ifdef USE_VHANGUP 135#ifdef USE_VHANGUP
136 old = signal(SIGHUP, SIG_IGN); 136 old = signal(SIGHUP, SIG_IGN);
137 vhangup(); 137 vhangup();