1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-05 08:47:56 +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 cygwin: Use native Win32 API for stat 2008-09-30 14:30:06 -07:00
fopen.c compat/fopen.c: avoid clobbering the system defined fopen macro 2008-05-08 17:43:01 -07:00
hstrerror.c Add a local implementation of hstrerror for the system which do not have it 2007-06-15 22:48:34 -07:00
inet_ntop.c Remove a couple of duplicated include 2007-11-05 20:50:38 -08:00
inet_pton.c Remove a couple of duplicated include 2007-11-05 20:50:38 -08:00
memmem.c optimize compat/ memmem() 2009-03-02 18:28:06 -08:00
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 Define compat version of mkdtemp for systems lacking it 2007-10-20 22:52:21 -04:00
mkstemps.c compat: add a mkstemps() compatibility function 2009-05-31 17:56:44 -07:00
mmap.c
pread.c
qsort.c compat: Add simplified merge sort implementation from glibc 2008-02-06 22:35:28 -08:00
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 mingw: move common functionality to win32.h 2008-09-30 14:30:06 -07:00
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