|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.291 2002/09/04 20:31:26 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.292 2002/09/16 01:24:41 tgl Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * this is the "main" module of the postgres backend and
|
@@ -1071,12 +1071,14 @@ ProcessInterrupts(void)
|
1071 | 1071 | ProcDiePending = false;
|
1072 | 1072 | QueryCancelPending = false; /* ProcDie trumps QueryCancel */
|
1073 | 1073 | ImmediateInterruptOK = false; /* not idle anymore */
|
| 1074 | + DisableNotifyInterrupt(); |
1074 | 1075 | elog(FATAL, "This connection has been terminated by the administrator.");
|
1075 | 1076 | }
|
1076 | 1077 | if (QueryCancelPending)
|
1077 | 1078 | {
|
1078 | 1079 | QueryCancelPending = false;
|
1079 | 1080 | ImmediateInterruptOK = false; /* not idle anymore */
|
| 1081 | + DisableNotifyInterrupt(); |
1080 | 1082 | elog(ERROR, "Query was cancelled.");
|
1081 | 1083 | }
|
1082 | 1084 | /* If we get here, do nothing (probably, QueryCancelPending was reset) */
|
@@ -1689,7 +1691,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
1689 | 1691 | if (!IsUnderPostmaster)
|
1690 | 1692 | {
|
1691 | 1693 | puts("\nPOSTGRES backend interactive interface ");
|
1692 |
| - puts("$Revision: 1.291 $ $Date: 2002/09/04 20:31:26 $\n"); |
| 1694 | + puts("$Revision: 1.292 $ $Date: 2002/09/16 01:24:41 $\n"); |
1693 | 1695 | }
|
1694 | 1696 |
|
1695 | 1697 | /*
|
@@ -1736,6 +1738,7 @@ PostgresMain(int argc, char *argv[], const char *username)
|
1736 | 1738 | QueryCancelPending = false;
|
1737 | 1739 | InterruptHoldoffCount = 1;
|
1738 | 1740 | CritSectionCount = 0; /* should be unnecessary, but... */
|
| 1741 | + DisableNotifyInterrupt(); |
1739 | 1742 | debug_query_string = NULL;
|
1740 | 1743 |
|
1741 | 1744 | /*
|
|
0 commit comments