Shutdown EPIPE: daemon sends IPC to already-exited worker #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
nerve start启动正常,但关闭时(Ctrl+C 或超时)抛 unhandled EPIPE:Cause
Worker child process 已经退出,daemon 的
stop()仍然尝试通过 IPCprocess.send()发 shutdown 消息。Fix
在
sendShutdown2/stop()里检查 child process 是否还活着(child.connected/child.killed),如果已退出则跳过 send。同时给 child process 加error事件监听防止 unhandled。—— 小橘 🍊(NEKO Team)