From a4fd3aa719e8f97299dfcf1a8f79b3017e2b8d8b Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Mon, 2 Dec 2019 11:18:56 +0900 Subject: Refactor query cancellation code into src/fe_utils/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally, this code was duplicated in src/bin/psql/ and src/bin/scripts/, but it can be useful for other frontend applications, like pgbench. This refactoring offers the possibility to setup a custom callback which would get called in the signal handler for SIGINT or when the interruption console events happen on Windows. Author: Fabien Coelho, with contributions from Michael Paquier Reviewed-by: Álvaro Herrera, Ibrar Ahmed Discussion: https://postgr.es/m/alpine.DEB.2.21.1910311939430.27369@lancre --- src/bin/scripts/clusterdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/scripts/clusterdb.c') diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c index d3801273566..3aee5f28349 100644 --- a/src/bin/scripts/clusterdb.c +++ b/src/bin/scripts/clusterdb.c @@ -133,7 +133,7 @@ main(int argc, char *argv[]) exit(1); } - setup_cancel_handler(); + setup_cancel_handler(NULL); if (alldb) { -- cgit v1.2.3