summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 47e3de0)
raw | patch | inline | side by side (parent: 47e3de0)
author | Johannes Sixt <j6t@kdbg.org> | |
Sat, 4 Jul 2009 19:26:38 +0000 (21:26 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 5 Jul 2009 19:16:27 +0000 (12:16 -0700) |
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>
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>
compat/mingw.h | patch | blob | history |
diff --git a/compat/mingw.h b/compat/mingw.h
index c1859c5480f67dbe9640975d68407f2c1efd15f5..948de66eb5fb2c1e52e774e86f593e42c26bcd05 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
#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