summaryrefslogtreecommitdiffstats
path: root/modules/graceful/restart_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/graceful/restart_unix.go')
-rw-r--r--modules/graceful/restart_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/graceful/restart_unix.go b/modules/graceful/restart_unix.go
index 3fc4f0511d..9a94e5fa67 100644
--- a/modules/graceful/restart_unix.go
+++ b/modules/graceful/restart_unix.go
@@ -22,7 +22,7 @@ var killParent sync.Once
// KillParent sends the kill signal to the parent process if we are a child
func KillParent() {
killParent.Do(func() {
- if Manager.IsChild() {
+ if GetManager().IsChild() {
ppid := syscall.Getppid()
if ppid > 1 {
_ = syscall.Kill(ppid, syscall.SIGTERM)