!3795 do_stop判断进程是否存在重新获取下pid

Merge pull request !3795 from zhangxubo/master_bf3
This commit is contained in:
opengauss_bot
2023-07-19 06:10:43 +00:00
committed by Gitee

View File

@ -1940,7 +1940,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();