mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 14:53:27 +01:00
Merge pull request #1353
452aeca
epee: blind attempt to fix exit hang on windows (moneromooo-monero)
This commit is contained in:
commit
52175502de
@ -155,6 +155,20 @@ namespace epee
|
|||||||
else if (0 < retval)
|
else if (0 < retval)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
while (m_run.load(std::memory_order_relaxed))
|
||||||
|
{
|
||||||
|
int retval = ::WaitForSingleObject(::GetStdHandle(STD_INPUT_HANDLE), 100);
|
||||||
|
switch (retval)
|
||||||
|
{
|
||||||
|
case WAIT_FAILED:
|
||||||
|
return false;
|
||||||
|
case WAIT_OBJECT_0:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user