Add CHECK_FOR_INTERRUPTS() to bootstrap command loop, so that control-C
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Nov 2003 18:19:45 +0000 (18:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Nov 2003 18:19:45 +0000 (18:19 +0000)
can terminate the bootstrap run.

src/backend/bootstrap/bootparse.y

index 8a5bc9451331054f160cd482f62b10ee03e6ded2..b966816e64ff4e4f7303d2c073156a7325443a34 100644 (file)
@@ -9,7 +9,7 @@
  *
  *
  * 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()
 {
    CommitTransactionCommand();
    elog(DEBUG4, "commit transaction");
+   CHECK_FOR_INTERRUPTS();     /* allow SIGINT to kill bootstrap run */
    if (isatty(0))
    {
        printf("bootstrap> ");