diff options
author | Colin Watson <cjwatson@debian.org> | 2005-05-25 11:01:01 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-05-25 11:01:01 +0000 |
commit | e88de75a1a236779a10e8ccbcc51d25308be8840 (patch) | |
tree | 7495477a2a7d0cac17a9fcded020b6ea816182ef /scp.c | |
parent | 30a0f9443782cd9d7308acd09430bf586186aa55 (diff) | |
parent | 5d05471f6657646d1d6500c7c43134462c407ee6 (diff) |
Merge 4.0p1 to the trunk.
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -71,7 +71,7 @@ | |||
71 | */ | 71 | */ |
72 | 72 | ||
73 | #include "includes.h" | 73 | #include "includes.h" |
74 | RCSID("$OpenBSD: scp.c,v 1.117 2004/08/11 21:44:32 avsm Exp $"); | 74 | RCSID("$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; | |||
108 | static void | 108 | static void |
109 | killchild(int signo) | 109 | killchild(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); |