Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7a245bf

Browse files
committed
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.
1 parent ed7b3b3 commit 7a245bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_ctl/pg_ctl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static bool wait_set = false;
8080
static int wait_seconds = DEFAULT_WAIT;
8181
static bool silent_mode = false;
8282
static ShutdownMode shutdown_mode = FAST_MODE;
83-
static int sig = SIGTERM; /* default */
83+
static int sig = SIGINT; /* default */
8484
static CtlCommand ctl_command = NO_COMMAND;
8585
static char *pg_data = NULL;
8686
static char *pg_config = NULL;

0 commit comments

Comments
 (0)