compresslog: reworked main loop for safe signal handling
commitbb47adaba9eb84240dbee61c1525ba40fdba9a18
authorMartin Langhoff <martin.langhoff@gmail.com>
Sat, 12 Oct 2013 18:12:40 +0000 (12 14:12 -0400)
committerMartin Langhoff <martin.langhoff@gmail.com>
Tue, 15 Oct 2013 01:35:18 +0000 (14 21:35 -0400)
treea8e7ef8a5a74e350ad3898c0deac84accf50cd9a
parentece93506457805b2d8337095e29aa1c27639579d
compresslog: reworked main loop for safe signal handling

The only sane signal handling is to only perform very limited
actions during the signal handling (ie: set a variable), and
then perform actual operations in the main loop.

So that's exactly what we do. All logic moves to the main
loop. This resolves all signal handling / reentrancy concerns.
compresslog