1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 22:44:49 +01: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 Fix more typos/spelling in comments 2009-04-22 19:03:39 -07:00
nedmalloc Fix typo in nedmalloc warning fix 2009-06-11 14:18:52 -07:00
regex Fix typos / spelling in comments 2009-04-22 19:02:12 -07:00
basename.c compat: add a basename() compatibility function 2009-05-31 17:57:59 -07:00
cygwin.c Fix more typos/spelling in comments 2009-04-22 19:03:39 -07:00
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c MinGW readdir reimplementation to support d_type 2009-06-01 00:25:54 -07:00
mingw.h MinGW: truncate exit()'s argument to lowest 8 bits 2009-07-05 12:16:26 -07:00
mkdtemp.c
mkstemps.c compat: add a mkstemps() compatibility function 2009-05-31 17:56:44 -07:00
mmap.c
pread.c
qsort.c
setenv.c
snprintf.c MinGW: GCC >= 4 does not need SNPRINTF_SIZE_CORR anymore 2009-06-01 00:07:21 -07:00
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
win32.h
win32mmap.c MinGW: implement mmap 2009-03-18 19:23:04 -07:00
winansi.c Work around a regression in Windows 7, causing erase_in_line() to crash sometimes 2009-06-01 00:08:54 -07:00