aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-09-06 23:55:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-09-06 23:55:34 +0000
commita1f7fb09756933369de462b729e81b14c0a3da99 (patch)
treec3caa1e396a15d51c2dfb0046772403a019fd7c7 /src
parent083258e535c58c97e52ade7b0b68b5ed1879a678 (diff)
downloadpostgresql-a1f7fb09756933369de462b729e81b14c0a3da99.tar.gz
postgresql-a1f7fb09756933369de462b729e81b14c0a3da99.zip
Fix error in Windows version of CHECK_FOR_INTERRUPTS macro.
This prevented statement_timeout from working. Magnus Hagander
Diffstat (limited to 'src')
-rw-r--r--src/include/miscadmin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index e066008cea2..4130bf14bd1 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.167 2004/08/29 05:06:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.168 2004/09/06 23:55:34 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to other files.
@@ -88,7 +88,7 @@ do { \
#define CHECK_FOR_INTERRUPTS() \
do { \
- if (WaitForSingleObject(pgwin32_signal_event,0) == WAIT_OBJECT_0) \
+ if (WaitForSingleObjectEx(pgwin32_signal_event,0,TRUE) == WAIT_OBJECT_0) \
pgwin32_dispatch_queued_signals(); \
if (InterruptPending) \
ProcessInterrupts(); \