diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-10 22:14:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-10 22:14:57 -0700 |
commit | 08ac69685a5b6bea45df1fd62ea1d9b7c0258d0b (patch) | |
tree | 3f3ccdcda78c82ed450666d22a0b463cf3eac6b3 /compat | |
parent | Check return value of ftruncate call in http.c (diff) | |
parent | api-run-command.txt: describe error behavior of run_command functions (diff) | |
download | tgif-08ac69685a5b6bea45df1fd62ea1d9b7c0258d0b.tar.xz |
Merge branch 'js/run-command-updates'
* js/run-command-updates:
api-run-command.txt: describe error behavior of run_command functions
run-command.c: squelch a "use before assignment" warning
receive-pack: remove unnecessary run_status report
run_command: report failure to execute the program, but optionally don't
run_command: encode deadly signal number in the return value
run_command: report system call errors instead of returning error codes
run_command: return exit code as positive value
MinGW: simplify waitpid() emulation macros
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mingw.h | 5 |
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 |