aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2015-04-01 02:10:24 +0900
committerFujii Masao <fujii@postgresql.org>2015-04-01 02:10:24 +0900
commit7a245bfe76125e32bb26f63893ee9f9fb0fa3ce2 (patch)
tree06050af67d8c317bd5bdea79cc1a870b3e2e61a7 /src
parented7b3b3811c5836a54549caaa217314be3f16fd0 (diff)
downloadpostgresql-7a245bfe76125e32bb26f63893ee9f9fb0fa3ce2.tar.gz
postgresql-7a245bfe76125e32bb26f63893ee9f9fb0fa3ce2.zip
Make pg_ctl use SIGINT as a default shutdown signal.
The commit 0badb06 changed the default shutdown mode from smart to fast, but forgot to change the default shutdown signal from SIGTERM to SIGINT.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_ctl/pg_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c
index ea6db8c26b5..80d7bc7ba67 100644
--- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c
@@ -80,7 +80,7 @@ static bool wait_set = false;
static int wait_seconds = DEFAULT_WAIT;
static bool silent_mode = false;
static ShutdownMode shutdown_mode = FAST_MODE;
-static int sig = SIGTERM; /* default */
+static int sig = SIGINT; /* default */
static CtlCommand ctl_command = NO_COMMAND;
static char *pg_data = NULL;
static char *pg_config = NULL;