Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: call SetErrorMode on startup to ask the system not to handle…
Browse files Browse the repository at this point in the history
… critical errors
  • Loading branch information
Igor Zinkovsky committed Nov 1, 2011
1 parent 90b0b7d commit 7a53924
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/win/core.c
Expand Up @@ -40,6 +40,10 @@ 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 | SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);

/* Initialize winsock */
uv_winsock_init();

Expand Down

0 comments on commit 7a53924

Please sign in to comment.