chiark / gitweb /
journal-remote: fix handling of non-blocking sources
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 28 Sep 2014 00:00:00 +0000 (20:00 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Sep 2014 15:08:04 +0000 (11:08 -0400)
commit70f1b2ddc6b94d3fa5539eb8503887b465f7fcc7
treea5e80f2a72aabec123601d73576a38e2559a2cc0
parent4bed248505da4da94d82078fe60326a374970e97
journal-remote: fix handling of non-blocking sources

In the conversion to sd-event loop, handling of normal files got
broken. We do not want to perform non-blocking reads on them, but
simply do read() in a loop. Install a statically-enabled "source"
to do that.
src/journal-remote/journal-remote.c