1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Fixed bug where if WatchDog is specified on Linux, a compile error happens because of a typo

This commit is contained in:
Bryan Roe
2019-09-19 16:35:47 -07:00
parent b2f3e28c33
commit 365fe2d36f

View File

@@ -2782,7 +2782,7 @@ ILibExportMethod void ILibStartChain(void *Chain)
#else
if (pipe(chain->WatchDogTerminator) == 0)
{
flags = fcntl(chain->WatchDogTerminator[0], F_GETFL, 0);
int flags = fcntl(chain->WatchDogTerminator[0], F_GETFL, 0);
fcntl(chain->WatchDogTerminator[0], F_SETFL, O_NONBLOCK | flags);
#ifndef _NOILIBSTACKDEBUG
signal(SIGUSR1, ILib_POSIX_CrashHandler);