Commit 27bff750 authored by Bruce Momjian's avatar Bruce Momjian

Prevent Win32 from displaying a popup box on backend crash. Instead let

the postmaster deal with it.

Magnus Hagander
parent 11a0c1de
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.101 2006/03/05 15:58:27 momjian Exp $ * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.102 2006/06/12 16:17:20 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -117,6 +117,9 @@ main(int argc, char *argv[]) ...@@ -117,6 +117,9 @@ main(int argc, char *argv[])
argv[0], err); argv[0], err);
exit(1); exit(1);
} }
/* In case of general protection fault, don't show GUI popup box */
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment