diff options
Diffstat (limited to 'modules/graceful/restart_unix.go')
-rw-r--r-- | modules/graceful/restart_unix.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go index a7c2b8288a..98d5c5cc20 100644 --- a/modules/graceful/restart_unix.go +++ b/modules/graceful/restart_unix.go @@ -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 } |