[Libreoffice-commits] core.git: vcl/headless
David Ostrovsky (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 1 11:01:15 UTC 2021
vcl/headless/svpinst.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 52dd3d085b95084fa6539aec64700f9b129ea116
Author: David Ostrovsky <david at ostrovsky.org>
AuthorDate: Sun Feb 28 09:26:54 2021 +0100
Commit: Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Mon Mar 1 11:59:52 2021 +0100
Fix -Werror=unused-result
Change-Id: I9d6f4b29b6045d5d64c0ee730588299c41d33419
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111689
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 9654243f5ac3..b5540301f21c 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -369,7 +369,11 @@ void SvpSalYieldMutex::doAcquire(sal_uInt32 const nLockCount)
m_bNoYieldLock = true;
bool const bEvents = pInst->DoYield(false, request == SvpRequest::MainThreadDispatchAllEvents);
m_bNoYieldLock = false;
- write(m_FeedbackFDs[1], &bEvents, sizeof(bool));
+ if (write(m_FeedbackFDs[1], &bEvents, sizeof(bool)) != sizeof(bool))
+ {
+ SAL_WARN("vcl.headless", "Could not write: " << strerror(errno));
+ std::abort();
+ }
}
}
while (true);
More information about the Libreoffice-commits
mailing list