author | Junio C Hamano <gitster@pobox.com> | |
Thu, 9 Jul 2009 07:59:32 +0000 (00:59 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 9 Jul 2009 07:59:32 +0000 (00:59 -0700) |
* 'js/run-command-updates' (early part):
MinGW: truncate exit()'s argument to lowest 8 bits
MinGW: truncate exit()'s argument to lowest 8 bits
compat/mingw.h | patch | blob | history | |
git.c | patch | blob | history |
diff --git a/compat/mingw.h b/compat/mingw.h
index 4f7ba4c13f9d0086acf9d1cfadf6912b1d641033..c1859c5480f67dbe9640975d68407f2c1efd15f5 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
errno = EINVAL;
return -1;
}
+/* bash cannot reliably detect negative return codes as failure */
+#define exit(code) exit((code) & 0xff)
/*
* simple adaptors