@matheusbsbs / matheus-bagliano / commits / d28250654f
Fork 0

Windows: Fix signal numbers

We had defined some SIG_FOO macros that appear in the code, but that are not supported on Windows, in order to make the code compile. But a subsequent change will assert that a signal number is non-zero. We now use the signal numbers that are commonly used on POSIX systems. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Jan 22, 2009 at 00:57 UTC d28250654f4150f391b0fab6713ecb5748ccfd98
1 file changed +6 -6
compat/mingw.h
+6 -6
@@ -21,12 +21,12 @@ typedef int pid_t;
21 #define WEXITSTATUS(x) ((x) & 0xff)
22 #define WIFSIGNALED(x) ((unsigned)(x) > 259)
23
24 -#define SIGKILL 0
25 -#define SIGCHLD 0
26 -#define SIGPIPE 0
27 -#define SIGHUP 0
28 -#define SIGQUIT 0
29 -#define SIGALRM 100
24 +#define SIGHUP 1
25 +#define SIGQUIT 3
26 +#define SIGKILL 9
27 +#define SIGPIPE 13
28 +#define SIGALRM 14
29 +#define SIGCHLD 17
30
31 #define F_GETFD 1
32 #define F_SETFD 2