Code

Fix Solaris stdio signal handling stupidities
authorLinus Torvalds <torvalds@osdl.org>
Sun, 2 Apr 2006 20:28:27 +0000 (13:28 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 2 Apr 2006 20:41:56 +0000 (13:41 -0700)
commitfb7a6531e67333b22967bf5b96ef22a28f3b2552
tree2c9630cdc268cef058945d80a21aaa4d658d0b69
parent473d404b53488a17458beea81913c1bc5df47a8a
Fix Solaris stdio signal handling stupidities

This uses sigaction() to install the SIGALRM handler with SA_RESTART, so
that Solaris stdio doesn't break completely when a signal interrupts a
read.

Thanks to Jason Riedy for confirming the silly Solaris signal behaviour.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c