1
0
mirror of https://github.com/git/git.git synced 2024-09-29 06:11:51 +02:00
git/compat
Johannes Sixt 47e3de0e79 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>
2009-07-05 12:16:26 -07:00
..
fnmatch
nedmalloc
regex
basename.c
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c
mingw.h MinGW: truncate exit()'s argument to lowest 8 bits 2009-07-05 12:16:26 -07:00
mkdtemp.c
mkstemps.c
mmap.c
pread.c
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
win32.h
win32mmap.c
winansi.c