Created
November 1, 2011 22:24
-
-
Save igorzi/1332141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From eb583bb283562aa957a2083d6a548c87ea21d733 Mon Sep 17 00:00:00 2001 | |
From: Igor Zinkovsky <igorzi@microsoft.com> | |
Date: Tue, 1 Nov 2011 15:23:07 -0700 | |
Subject: [PATCH] windows: call SetErrorMode on startup to ask the system not to handle critical errors | |
--- | |
src/win/core.c | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/src/win/core.c b/src/win/core.c | |
index 2fa8130..c115970 100644 | |
--- a/src/win/core.c | |
+++ b/src/win/core.c | |
@@ -40,6 +40,9 @@ static uv_once_t uv_default_loop_init_guard_ = UV_ONCE_INIT; | |
static void uv_init(void) { | |
+ /* Tell Windows that we will handle critical errors. */ | |
+ SetErrorMode(SEM_FAILCRITICALERRORS); | |
+ | |
/* Initialize winsock */ | |
uv_winsock_init(); | |
-- | |
1.7.4.msysgit.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment