summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2009-07-04 21:26:38 +0200
committerJunio C Hamano <gitster@pobox.com>2009-07-05 12:16:27 -0700
commit303e7c48eae7e140a9612ff1f9b5a95ca80b65c4 (patch)
tree6604b1cbbcc59de259cc3dd0fa33e6fbe071621c /compat
parent47e3de0e7968a4176e2c54a36b214d3e7b24ad15 (diff)
downloadgit-303e7c48eae7e140a9612ff1f9b5a95ca80b65c4.tar.gz
MinGW: simplify waitpid() emulation macros
Windows does not have signals. At least they cannot be diagnosed by the parent process; all that the parent process can observe is the exit code. This also adds a dummy definition of WTERMSIG. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index c1859c5480..948de66eb5 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -17,9 +17,10 @@ typedef int pid_t;
#define S_IROTH 0
#define S_IXOTH 0
-#define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */
+#define WIFEXITED(x) 1
+#define WIFSIGNALED(x) 0
#define WEXITSTATUS(x) ((x) & 0xff)
-#define WIFSIGNALED(x) ((unsigned)(x) > 259)
+#define WTERMSIG(x) SIGTERM
#define SIGHUP 1
#define SIGQUIT 3