I agree that the POSIX standard is quite restrictive in this respect.
However I believe that is for a good reason.
Performing non-atomic memory operations on static objects in a signal handler
can cause problems with reentrancy.
This can lead to undefined behaviour for example in the case of neste
Johannes Przybilla wrote:
This can lead to undefined behaviour for example in the case of nested signal
handler calls
These can't happen in gzip, so we should be OK here.
Johannes Przybilla wrote:
I agree that the POSIX standard is quite restrictive in this
respect. However I believe that is for a good reason. Performing
non-atomic memory operations on static objects in a signal handler
can cause problems with reentrancy. This can lead to undefined
behaviour for e