From c7c05c8e5723ed833ed0e73d24d7f7c45169c6e9 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 18 May 2016 11:06:02 +0100 Subject: 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. --- include/mingw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mingw.h') 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); #define PRIuMAX "I64u" pid_t FAST_FUNC mingw_spawn(char **argv); +intptr_t FAST_FUNC mingw_spawn_proc(char **argv); int mingw_execv(const char *cmd, const char *const *argv); int mingw_execvp(const char *cmd, const char *const *argv); int mingw_execve(const char *cmd, const char *const *argv, const char *const *envp); -- cgit v1.2.3-55-g6feb