diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 23:48:05 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2013-06-28 23:48:05 +0300 |
commit | 9dc319eabb34a826f4945f91c71620f14a60e9e2 (patch) | |
tree | 7f92afc9d6f9031d9dcfded0f8231fd5ee7f16d6 /src/liblzma/common/easy_buffer_encoder.c | |
parent | xz: Use non-blocking I/O for the input file. (diff) | |
download | xz-9dc319eabb34a826f4945f91c71620f14a60e9e2.tar.xz |
xz: Use the self-pipe trick to avoid a race condition with signals.
It is possible that a signal to set user_abort arrives right
before a blocking system call is made. In this case the call
may block until another signal arrives, while the wanted
behavior is to make xz clean up and exit as soon as possible.
After this commit, the race condition is avoided with the
input side which already uses non-blocking I/O. The output
side still uses blocking I/O and thus has the race condition.
Diffstat (limited to 'src/liblzma/common/easy_buffer_encoder.c')
0 files changed, 0 insertions, 0 deletions