!3795 do_stop判断进程是否存在重新获取下pid
Merge pull request !3795 from zhangxubo/master_bf3
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user