diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | #include "includes.h" | 17 | #include "includes.h" |
18 | 18 | ||
19 | RCSID("$OpenBSD: sftp.c,v 1.60 2004/12/10 03:10:42 fgsch Exp $"); | 19 | RCSID("$OpenBSD: sftp.c,v 1.61 2005/01/24 10:22:06 dtucker Exp $"); |
20 | 20 | ||
21 | #ifdef USE_LIBEDIT | 21 | #ifdef USE_LIBEDIT |
22 | #include <histedit.h> | 22 | #include <histedit.h> |
@@ -150,8 +150,10 @@ int interactive_loop(int fd_in, int fd_out, char *file1, char *file2); | |||
150 | static void | 150 | static void |
151 | killchild(int signo) | 151 | killchild(int signo) |
152 | { | 152 | { |
153 | if (sshpid > 1) | 153 | if (sshpid > 1) { |
154 | kill(sshpid, SIGTERM); | 154 | kill(sshpid, SIGTERM); |
155 | waitpid(sshpid, NULL, 0); | ||
156 | } | ||
155 | 157 | ||
156 | _exit(1); | 158 | _exit(1); |
157 | } | 159 | } |