summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:12:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:12:01 +0000
commitec19a40b94f8d229a283720ad72324d9eed32f86 (patch)
tree1a9760aa3e17ee8d6fdccbc04f570c0f67065cd7 /sftp.c
parent069090128c58d4cb7de488f2dfb3895661c59724 (diff)
- deraadt@cvs.openbsd.org 2001/02/28 05:36:28
[sftp.c] do not kill the subprocess on termination (we will see if this helps things or hurts things)
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sftp.c b/sftp.c
index 0fba6749f..16a2616a9 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.7 2001/02/08 00:04:52 markus Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.8 2001/02/28 05:36:28 deraadt Exp $");
28 28
29/* XXX: commandline mode */ 29/* XXX: commandline mode */
30/* XXX: copy between two remote hosts (commandline) */ 30/* XXX: copy between two remote hosts (commandline) */
@@ -254,11 +254,6 @@ main(int argc, char **argv)
254 close(in); 254 close(in);
255 close(out); 255 close(out);
256 256
257#if !defined(HAVE_CYGWIN)
258 if (kill(sshpid, SIGHUP) == -1)
259 fatal("Couldn't terminate ssh process: %s", strerror(errno));
260#endif
261
262 if (waitpid(sshpid, NULL, 0) == -1) 257 if (waitpid(sshpid, NULL, 0) == -1)
263 fatal("Couldn't wait for ssh process: %s", strerror(errno)); 258 fatal("Couldn't wait for ssh process: %s", strerror(errno));
264 259