diff options
Diffstat (limited to 'src/multilogdevice.cc')
-rw-r--r-- | src/multilogdevice.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/multilogdevice.cc b/src/multilogdevice.cc index cf7c412..ea567ff 100644 --- a/src/multilogdevice.cc +++ b/src/multilogdevice.cc @@ -37,7 +37,11 @@ bool MultilogDevice::waitForWrite(void) const tv.tv_sec = getTimeout(); tv.tv_usec = 0; - int result = select(fileno(stderr) + 1, nullptr, &writeMask, nullptr, tv.tv_sec ? &tv : nullptr); + int result = select(fileno(stderr) + 1, + nullptr, + &writeMask, + nullptr, + tv.tv_sec ? &tv : nullptr); return result > 0; } @@ -50,7 +54,9 @@ bool MultilogDevice::waitForRead(void) const IODevice::WriteResult MultilogDevice::write(void) { for (;;) { - ssize_t wrote = ::write(fileno(stderr), outputBuffer.str().c_str(), outputBuffer.getSize()); + ssize_t wrote = ::write(fileno(stderr), + outputBuffer.str().c_str(), + outputBuffer.getSize()); if (wrote == -1) { if (errno == EINTR) |