summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--sftp.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 465b26c66..bba7a665e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
120010226 120010226
2 - (bal) Applied shutdown() patch for sftp.c by Corinna Vinschen
3 <vinschen@redhat.com>
4
520010226
2 - (bal) Fixed bsd-snprinf.c so it now honors 'BROKEN_SNPRINTF' again. 6 - (bal) Fixed bsd-snprinf.c so it now honors 'BROKEN_SNPRINTF' again.
3 - (djm) Some systems (SCO3, NeXT) have weird saved uid semantics. 7 - (djm) Some systems (SCO3, NeXT) have weird saved uid semantics.
4 Based on patch from Tim Rice <tim@multitalents.net> 8 Based on patch from Tim Rice <tim@multitalents.net>
@@ -4131,4 +4135,4 @@
4131 - Wrote replacements for strlcpy and mkdtemp 4135 - Wrote replacements for strlcpy and mkdtemp
4132 - Released 1.0pre1 4136 - Released 1.0pre1
4133 4137
4134$Id: ChangeLog,v 1.823 2001/02/26 09:49:58 djm Exp $ 4138$Id: ChangeLog,v 1.824 2001/02/26 20:04:45 mouring Exp $
diff --git a/sftp.c b/sftp.c
index b4775c02f..0fba6749f 100644
--- a/sftp.c
+++ b/sftp.c
@@ -246,11 +246,18 @@ main(int argc, char **argv)
246 246
247 interactive_loop(in, out); 247 interactive_loop(in, out);
248 248
249#if !defined(USE_PIPES)
250 shutdown(in, SHUT_RDWR);
251 shutdown(out, SHUT_RDWR);
252#endif
253
249 close(in); 254 close(in);
250 close(out); 255 close(out);
251 256
257#if !defined(HAVE_CYGWIN)
252 if (kill(sshpid, SIGHUP) == -1) 258 if (kill(sshpid, SIGHUP) == -1)
253 fatal("Couldn't terminate ssh process: %s", strerror(errno)); 259 fatal("Couldn't terminate ssh process: %s", strerror(errno));
260#endif
254 261
255 if (waitpid(sshpid, NULL, 0) == -1) 262 if (waitpid(sshpid, NULL, 0) == -1)
256 fatal("Couldn't wait for ssh process: %s", strerror(errno)); 263 fatal("Couldn't wait for ssh process: %s", strerror(errno));