summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-05-25 11:01:01 +0000
committerColin Watson <cjwatson@debian.org>2005-05-25 11:01:01 +0000
commite88de75a1a236779a10e8ccbcc51d25308be8840 (patch)
tree7495477a2a7d0cac17a9fcded020b6ea816182ef /scp.c
parent30a0f9443782cd9d7308acd09430bf586186aa55 (diff)
parent5d05471f6657646d1d6500c7c43134462c407ee6 (diff)
Merge 4.0p1 to the trunk.
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/scp.c b/scp.c
index ef9eaa1a4..f69fd05fc 100644
--- a/scp.c
+++ b/scp.c
@@ -71,7 +71,7 @@
71 */ 71 */
72 72
73#include "includes.h" 73#include "includes.h"
74RCSID("$OpenBSD: scp.c,v 1.117 2004/08/11 21:44:32 avsm Exp $"); 74RCSID("$OpenBSD: scp.c,v 1.119 2005/01/24 10:22:06 dtucker Exp $");
75 75
76#include "xmalloc.h" 76#include "xmalloc.h"
77#include "atomicio.h" 77#include "atomicio.h"
@@ -108,8 +108,10 @@ pid_t do_cmd_pid = -1;
108static void 108static void
109killchild(int signo) 109killchild(int signo)
110{ 110{
111 if (do_cmd_pid > 1) 111 if (do_cmd_pid > 1) {
112 kill(do_cmd_pid, signo); 112 kill(do_cmd_pid, signo);
113 waitpid(do_cmd_pid, NULL, 0);
114 }
113 115
114 _exit(1); 116 _exit(1);
115} 117}
@@ -726,7 +728,7 @@ sink(int argc, char **argv)
726 728
727#define atime tv[0] 729#define atime tv[0]
728#define mtime tv[1] 730#define mtime tv[1]
729#define SCREWUP(str) do { why = str; goto screwup; } while (0) 731#define SCREWUP(str) { why = str; goto screwup; }
730 732
731 setimes = targisdir = 0; 733 setimes = targisdir = 0;
732 mask = umask(0); 734 mask = umask(0);