diff options
author | Ron Yorston <rmy@pobox.com> | 2016-05-18 11:06:02 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-05-18 11:06:02 +0100 |
commit | c7c05c8e5723ed833ed0e73d24d7f7c45169c6e9 (patch) | |
tree | eba790e9f233e0649dba0887c064970cc3bb0b2d /include/mingw.h | |
parent | 4988f3c4cc3cb9e8b1ccb06e84768c177cb13385 (diff) | |
download | busybox-w32-c7c05c8e5723ed833ed0e73d24d7f7c45169c6e9.tar.gz busybox-w32-c7c05c8e5723ed833ed0e73d24d7f7c45169c6e9.tar.bz2 busybox-w32-c7c05c8e5723ed833ed0e73d24d7f7c45169c6e9.zip |
ash: fix use of pid/handle in waitpid_child
Previously spawn was returning a process handle which was treated as a
pid in certain circumstances. This resulted in the following failing:
find . -type f | sed xargs -n 1 sed -n '1 p'
It should output the first line of each file but stopped after the
first.
Diffstat (limited to 'include/mingw.h')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index bfdf2cccd..efb17e137 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -450,6 +450,7 @@ DIR *mingw_opendir(const char *path); | |||
450 | #define PRIuMAX "I64u" | 450 | #define PRIuMAX "I64u" |
451 | 451 | ||
452 | pid_t FAST_FUNC mingw_spawn(char **argv); | 452 | pid_t FAST_FUNC mingw_spawn(char **argv); |
453 | intptr_t FAST_FUNC mingw_spawn_proc(char **argv); | ||
453 | int mingw_execv(const char *cmd, const char *const *argv); | 454 | int mingw_execv(const char *cmd, const char *const *argv); |
454 | int mingw_execvp(const char *cmd, const char *const *argv); | 455 | int mingw_execvp(const char *cmd, const char *const *argv); |
455 | int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp); | 456 | int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp); |