Skip to content

Commit 27bff75

Browse files
committed
Prevent Win32 from displaying a popup box on backend crash. Instead let
the postmaster deal with it. Magnus Hagander
1 parent 11a0c1d commit 27bff75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/main/main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.101 2006/03/05 15:58:27 momjian Exp $
16+
* $PostgreSQL: pgsql/src/backend/main/main.c,v 1.102 2006/06/12 16:17:20 momjian Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -117,6 +117,9 @@ main(int argc, char *argv[])
117117
argv[0], err);
118118
exit(1);
119119
}
120+
121+
/* In case of general protection fault, don't show GUI popup box */
122+
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
120123
}
121124
#endif
122125

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy