diff options
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |