wxiaoguang
2023-05-22 09:38:38 +08:00
committed by GitHub
parent 2d3ebe889e
commit ec2a01d1e2
9 changed files with 36 additions and 34 deletions

View File

@ -109,5 +109,7 @@ func RestartProcess() (int, error) {
if err != nil {
return 0, err
}
return process.Pid, nil
processPid := process.Pid
_ = process.Release() // no wait, so release
return processPid, nil
}