std::promise<bool>& shutdown_server_now,
tbb::atomic<bool>& should_wait_for_keypress)
{
+ ensure_gpf_handler_installed_for_thread("Console thread");
std::wstring wcmd;
while(true)
{
- std::getline(std::wcin, wcmd); // TODO: It's blocking...
-
- //boost::to_upper(wcmd);
+ if (!std::getline(std::wcin, wcmd)) // TODO: It's blocking...
+ wcmd = L"EXIT"; // EOF, handle as EXIT
if(boost::iequals(wcmd, L"EXIT") || boost::iequals(wcmd, L"Q") || boost::iequals(wcmd, L"QUIT") || boost::iequals(wcmd, L"BYE"))
{