]> git.samba.org - rsync.git/commit
Avoid I/O via signal-handler thread.
authorWayne Davison <wayned@samba.org>
Sun, 26 May 2013 21:52:50 +0000 (14:52 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 26 May 2013 23:22:56 +0000 (16:22 -0700)
commitd4070db6312c4b38980ad165732d6beaaa0c06b3
tree596623955444749ddeaf520a1eb2dd10c9021290
parentcb784f18ec02778419c58896cabbb418f5512ae1
Avoid I/O via signal-handler thread.

The cleanup code will try to flush the output buffer in some
circumstances, which is not valid if we're handling an async signal
(since it might have interrupted some partial I/O in the main thread).
These signals now set a flag and try to let the main I/O handler take
care of the exit strategy.  Fixes a protocol error that could happen
when trying to exit after a kill signal.
cleanup.c
io.c
rsync.c