author | Johannes Sixt <j6t@kdbg.org> | |
Sun, 5 Jul 2009 18:57:46 +0000 (20:57 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 5 Jul 2009 19:16:26 +0000 (12:16 -0700) | ||
commit | 47e3de0e7968a4176e2c54a36b214d3e7b24ad15 | |
tree | 0d24466e12853253e4f6dea495272a9e6817a14c | tree | snapshot |
parent | 606475f3178784e5a6b3a01dce1a54314345cf43 | commit | diff |
MinGW: truncate exit()'s argument to lowest 8 bits
For some reason, MinGW's bash cannot reliably detect failure of the child
process if a negative value is passed to exit(). This fixes it by
truncating the exit code in all calls of exit().
This issue was worked around in run_builtin() of git.c (2488df84 builtin
run_command: do not exit with -1, 2007-11-15). This workaround is no longer
necessary and is reverted.
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
For some reason, MinGW's bash cannot reliably detect failure of the child
process if a negative value is passed to exit(). This fixes it by
truncating the exit code in all calls of exit().
This issue was worked around in run_builtin() of git.c (2488df84 builtin
run_command: do not exit with -1, 2007-11-15). This workaround is no longer
necessary and is reverted.
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.h | diff | blob | history | |
git.c | diff | blob | history |