]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Make the event in crash service signaled by default
authorCheng Zhao <zcbenz@gmail.com>
Thu, 15 Oct 2015 05:16:24 +0000 (13:16 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 15 Oct 2015 08:36:29 +0000 (16:36 +0800)
Otherwise it seems to block the crash client on some machines.

Fix #2769.

atom/common/crash_reporter/win/crash_service.cc

index d315b0b9419ebc84df0c629450411fb83c2c8b05..9b6ba7e03a65507ffd0b05c7cccf61901ba327fb 100644 (file)
@@ -311,7 +311,7 @@ bool CrashService::Initialize(const base::string16& application_name,
   // service is initialized.
   base::string16 wait_name = ReplaceStringPlaceholders(
       kWaitEventFormat, application_name, NULL);
-  HANDLE wait_event = ::CreateEventW(NULL, TRUE, FALSE, wait_name.c_str());
+  HANDLE wait_event = ::CreateEventW(NULL, TRUE, TRUE, wait_name.c_str());
   ::SetEvent(wait_event);
 
   return true;