From 8fdd6da926e8cb71cca41f6c28db4231e8525952 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 26 Nov 2014 21:17:00 +0100 Subject: [PATCH] Keep retrying for FifoFile even if it's temporarily unavailable --- src/engine/shared/fifoconsole.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/shared/fifoconsole.cpp b/src/engine/shared/fifoconsole.cpp index a6b253617..057362a38 100644 --- a/src/engine/shared/fifoconsole.cpp +++ b/src/engine/shared/fifoconsole.cpp @@ -23,8 +23,8 @@ void FifoConsole::ListenFifoThread(void *pUser) { FifoConsole *pData = (FifoConsole *)pUser; - if (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0) - return; + while (!pData->m_pFifoFile || str_comp(pData->m_pFifoFile, "") == 0) + thread_sleep(1000); mkfifo(pData->m_pFifoFile, 0600);