From 4061eab2df47b6294072f7b6da04635dbe00c0e4 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Tue, 18 Jul 2023 19:49:35 +0800 Subject: [PATCH] =?UTF-8?q?do=5Fstop=E5=88=A4=E6=96=AD=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E9=87=8D=E6=96=B0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=8Bpid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_ctl/pg_ctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_ctl/pg_ctl.cpp b/src/bin/pg_ctl/pg_ctl.cpp index 55c63f6de..4c2a77e24 100755 --- a/src/bin/pg_ctl/pg_ctl.cpp +++ b/src/bin/pg_ctl/pg_ctl.cpp @@ -1933,7 +1933,7 @@ static void do_stop(bool force) break; } - if (pid != 0) { /* pid file still exists */ + if ((pid = get_pgpid()) != 0) { /* pid file still exists */ if (force || (shutdown_mode == IMMEDIATE_MODE)) { kill_proton_force();