mingw: correct exit-code for SIGALRM's SIG_DFL
commitf4f549892ac686a9adcf3cb72bee1a11c0566c88
authorErik Faye-Lund <kusmabite@gmail.com>
Tue, 4 Dec 2012 08:10:37 +0000 (4 09:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Dec 2012 16:00:29 +0000 (4 08:00 -0800)
tree4eb85f5e0d5b040f5b8c23e2cea8c15cdb008fa7
parentf94c3251e1400c3cf349f7f84fea4db66b540113
mingw: correct exit-code for SIGALRM's SIG_DFL

Make sure SIG_DFL for SIGALRM exits with 128 + SIGALRM so other
processes can diagnose why it exits.

While we're at it, make sure we only write to stderr if it's a
terminal, and  change the output to match that of Linux.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c