From 40ee1fcfb77731f3cd7385882f41630af6aedb33 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 23:30:49 +0200 Subject: reduce line limit to 95 --- src/multilogdevice.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/multilogdevice.cc') 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) -- cgit v1.2.3