Fixed a heartbeat ignore bug.

This commit is contained in:
2026-06-08 09:52:13 +08:00
parent 72178f8122
commit c99188ef78
+1
View File
@@ -90,6 +90,7 @@ class MethodExecutor
while true while true
sleep 0.5 sleep 0.5
begin begin
SystemdNotifier.notify("WATCHDOG=1")
proc_status = Process.waitpid2(pid, Process::WNOHANG) proc_status = Process.waitpid2(pid, Process::WNOHANG)
if proc_status # 子进程已退出,返回 [pid, status] if proc_status # 子进程已退出,返回 [pid, status]
_, status = proc_status _, status = proc_status