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