Browse Source

Flush pipes with syncfs, seems to be the only call that works

tags/v1.9.11
falkTX 6 years ago
parent
commit
49fbbc23e9
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      source/utils/CarlaPipeUtils.cpp

+ 6
- 4
source/utils/CarlaPipeUtils.cpp View File

@@ -937,15 +937,17 @@ bool CarlaPipeCommon::flushMessages() const noexcept
{
CARLA_SAFE_ASSERT_RETURN(pData->pipeSend != INVALID_PIPE_VALUE, false);

#if 0 // def CARLA_OS_WIN
#ifdef CARLA_OS_WIN
// FIXME
return true;

try {
return (::FlushFileBuffers(pData->pipeSend) != FALSE);
} CARLA_SAFE_EXCEPTION_RETURN("CarlaPipeCommon::writeMsgBuffer", false);
#else
return ::syncfs(pData->pipeSend) == 0;
#endif

// nothing to do
return true;

}

// -------------------------------------------------------------------


Loading…
Cancel
Save