aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-18 11:06:02 +0100
committerRon Yorston <rmy@pobox.com>2016-05-18 11:06:02 +0100
commitc7c05c8e5723ed833ed0e73d24d7f7c45169c6e9 (patch)
treeeba790e9f233e0649dba0887c064970cc3bb0b2d /include/mingw.h
parent4988f3c4cc3cb9e8b1ccb06e84768c177cb13385 (diff)
downloadbusybox-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.h1
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
452pid_t FAST_FUNC mingw_spawn(char **argv); 452pid_t FAST_FUNC mingw_spawn(char **argv);
453intptr_t FAST_FUNC mingw_spawn_proc(char **argv);
453int mingw_execv(const char *cmd, const char *const *argv); 454int mingw_execv(const char *cmd, const char *const *argv);
454int mingw_execvp(const char *cmd, const char *const *argv); 455int mingw_execvp(const char *cmd, const char *const *argv);
455int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp); 456int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp);