Fixed a heartbeat ignore bug.
This commit is contained in:
@@ -90,6 +90,7 @@ class MethodExecutor
|
||||
while true
|
||||
sleep 0.5
|
||||
begin
|
||||
SystemdNotifier.notify("WATCHDOG=1")
|
||||
proc_status = Process.waitpid2(pid, Process::WNOHANG)
|
||||
if proc_status # 子进程已退出,返回 [pid, status]
|
||||
_, status = proc_status
|
||||
|
||||
Reference in New Issue
Block a user