diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-03-26 19:21:33 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-03-26 19:21:33 +0200 |
commit | a27ba3370ca156a9fc44e27c2dab053ec3e274e3 (patch) | |
tree | b41d64ad507801f0442e301431384629374ba9af /mflag.c | |
parent | 6b9f742d7d1c8c7e691bcd42f801c286d6df4bee (diff) | |
download | mblaze-a27ba3370ca156a9fc44e27c2dab053ec3e274e3.tar.gz mblaze-a27ba3370ca156a9fc44e27c2dab053ec3e274e3.tar.xz mblaze-a27ba3370ca156a9fc44e27c2dab053ec3e274e3.zip |
filter: make more robust
MacOS will send POLLIN for empty reads on EOF, so detect ret == 0 too. Also poll for POLLHUP, which other systems use to message EOF. Fixes #18.
Diffstat (limited to 'mflag.c')
0 files changed, 0 insertions, 0 deletions