Skip to content

Commit d282506

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9002ec3 commit d282506

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

compat/mingw.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ typedef int pid_t;
2121
#define WEXITSTATUS(x) ((x) & 0xff)
2222
#define WIFSIGNALED(x) ((unsigned)(x) > 259)
2323

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
3030

3131
#define F_GETFD 1
3232
#define F_SETFD 2

0 commit comments

Comments
 (0)