diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpinst.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
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); |