diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-26 21:04:45 +0100 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-26 21:04:45 +0100 |
commit | 10b9bf95c07c0fb81f46b2df0e09afd7d3d1847b (patch) | |
tree | 30a0ef174dfae141420e529fb0220125666d65a4 /sftp.c | |
parent | - (djm) Some systems (SCO3, NeXT) have weird saved uid semantics. (diff) | |
download | openssh-10b9bf95c07c0fb81f46b2df0e09afd7d3d1847b.tar.xz openssh-10b9bf95c07c0fb81f46b2df0e09afd7d3d1847b.zip |
- (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen
<vinschen@redhat.com>
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -246,11 +246,18 @@ main(int argc, char **argv) interactive_loop(in, out); +#if !defined(USE_PIPES) + shutdown(in, SHUT_RDWR); + shutdown(out, SHUT_RDWR); +#endif + close(in); close(out); +#if !defined(HAVE_CYGWIN) if (kill(sshpid, SIGHUP) == -1) fatal("Couldn't terminate ssh process: %s", strerror(errno)); +#endif if (waitpid(sshpid, NULL, 0) == -1) fatal("Couldn't wait for ssh process: %s", strerror(errno)); |