summaryrefslogtreecommitdiff
path: root/src/stdiodevice.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdiodevice.cc')
-rw-r--r--src/stdiodevice.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/stdiodevice.cc b/src/stdiodevice.cc
index b078c7a..411bdc5 100644
--- a/src/stdiodevice.cc
+++ b/src/stdiodevice.cc
@@ -44,7 +44,11 @@ bool StdIODevice::waitForWrite(void) const
tv.tv_sec = timeout;
tv.tv_usec = 0;
- int result = select(fileno(stdout) + 1, nullptr, &writeMask, nullptr, timeout ? &tv : nullptr);
+ int result = select(fileno(stdout) + 1,
+ nullptr,
+ &writeMask,
+ nullptr,
+ timeout ? &tv : nullptr);
if (result == 0) error = Timeout;
return result > 0;
}
@@ -67,7 +71,9 @@ bool StdIODevice::waitForRead(void) const
IODevice::WriteResult StdIODevice::write(void)
{
for (;;) {
- ssize_t wrote = ::write(fileno(stdout), outputBuffer.str().c_str(), outputBuffer.getSize());
+ ssize_t wrote = ::write(fileno(stdout),
+ outputBuffer.str().c_str(),
+ outputBuffer.getSize());
if (wrote == -1) {
if (errno == EINTR)