summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-12-23 20:50:48 +0100
committerLennart Poettering <lennart@poettering.net>2011-12-23 20:50:48 +0100
commitfe6521272ba203ec8f0d5a94f0729960b3f90525 (patch)
tree4f67dbcaf3ffb5fbb2bc2345829136dfe7a3d3c8 /src/util.c
parent6ad1d1c30621280bfad3e63fcc1c7ceb7d8ffa98 (diff)
journal: implement stdout transport
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 195835425d..c07c569c26 100644
--- a/src/util.c
+++ b/src/util.c
@@ -2885,7 +2885,8 @@ ssize_t loop_write(int fd, const void *buf, size_t nbytes, bool do_poll) {
while (nbytes > 0) {
ssize_t k;
- if ((k = write(fd, p, nbytes)) <= 0) {
+ k = write(fd, p, nbytes);
+ if (k <= 0) {
if (k < 0 && errno == EINTR)
continue;