From 0d89236fd458e2ab258a846f895dbb64209e02d1 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 15 May 2015 01:20:51 +0200 Subject: [PATCH] windows: do not trap CTRL_CLOSE event --- ccminer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccminer.cpp b/ccminer.cpp index bad7f78..b941251 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -2607,10 +2607,10 @@ BOOL WINAPI ConsoleHandler(DWORD dwType) applog(LOG_INFO, "CTRL_BREAK_EVENT received, exiting"); proper_exit(EXIT_CODE_KILLED); break; - case CTRL_CLOSE_EVENT: +/* case CTRL_CLOSE_EVENT: applog(LOG_INFO, "CTRL_CLOSE_EVENT received, exiting"); proper_exit(EXIT_CODE_KILLED); - break; + break;*/ case CTRL_LOGOFF_EVENT: applog(LOG_INFO, "CTRL_LOGOFF_EVENT received, exiting"); proper_exit(EXIT_CODE_KILLED);