Panic if shell can't restart process
This commit is contained in:
+3
-1
@@ -90,5 +90,7 @@ func Restart() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
path = filepath.Clean(path)
|
path = filepath.Clean(path)
|
||||||
_ = syscall.Exec(path, os.Args, os.Environ())
|
if err = syscall.Exec(path, os.Args, os.Environ()); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user