Commit e035a297 authored by Tom Lane's avatar Tom Lane

Add CHECK_FOR_INTERRUPTS() to bootstrap command loop, so that control-C

can terminate the bootstrap run.
parent 959c0f7f
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.61 2003/11/09 21:30:35 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.62 2003/11/14 18:19:45 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -64,6 +64,7 @@ do_end() ...@@ -64,6 +64,7 @@ do_end()
{ {
CommitTransactionCommand(); CommitTransactionCommand();
elog(DEBUG4, "commit transaction"); elog(DEBUG4, "commit transaction");
CHECK_FOR_INTERRUPTS(); /* allow SIGINT to kill bootstrap run */
if (isatty(0)) if (isatty(0))
{ {
printf("bootstrap> "); printf("bootstrap> ");
......
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