Browse Source

windows: do not trap CTRL_CLOSE event

master 1.6.3-tpruvot
Tanguy Pruvot 10 years ago
parent
commit
0d89236fd4
  1. 4
      ccminer.cpp

4
ccminer.cpp

@ -2607,10 +2607,10 @@ BOOL WINAPI ConsoleHandler(DWORD dwType)
applog(LOG_INFO, "CTRL_BREAK_EVENT received, exiting"); applog(LOG_INFO, "CTRL_BREAK_EVENT received, exiting");
proper_exit(EXIT_CODE_KILLED); proper_exit(EXIT_CODE_KILLED);
break; break;
case CTRL_CLOSE_EVENT: /* case CTRL_CLOSE_EVENT:
applog(LOG_INFO, "CTRL_CLOSE_EVENT received, exiting"); applog(LOG_INFO, "CTRL_CLOSE_EVENT received, exiting");
proper_exit(EXIT_CODE_KILLED); proper_exit(EXIT_CODE_KILLED);
break; break;*/
case CTRL_LOGOFF_EVENT: case CTRL_LOGOFF_EVENT:
applog(LOG_INFO, "CTRL_LOGOFF_EVENT received, exiting"); applog(LOG_INFO, "CTRL_LOGOFF_EVENT received, exiting");
proper_exit(EXIT_CODE_KILLED); proper_exit(EXIT_CODE_KILLED);

Loading…
Cancel
Save