journald: don't employ inner loop for reading from incoming sockets
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jun 2015 17:24:58 +0000 (19:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jun 2015 18:09:10 +0000 (20:09 +0200)
commita315ac4e076c4ce7ce3e5c95792cf916d5e918c5
treeea16f6bf0a8a3a5ca51bdd85319e64c2cf5ea982
parenta8467435a0c4962cab89574f65e7318ef389351f
journald: don't employ inner loop for reading from incoming sockets

Otherwise, if the socket is constantly busy we will never return to the
event loop, but we really need to to dispatch other (possibly more
high-priority) events too. Hence, return after dispatching one message
to the event handler, and rely on the event loop calling us back
right-away.

Fixes #125
src/journal/journald-server.c