You've already forked agentic-coding-workflow
feat(acp): supervisor spawn / handshake / monitor / kill / onExit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
//go:build windows
|
||||
|
||||
package acp
|
||||
|
||||
import "time"
|
||||
|
||||
// unixGracefulTerm 在 Windows 上没有可靠的 SIGTERM 等价信号(CTRL_BREAK 仅
|
||||
// 对 console 子进程生效)。直接 Process.Kill,grace 参数不参与,仅签名一致。
|
||||
func (s *Supervisor) unixGracefulTerm(proc *Process, grace time.Duration) {
|
||||
if proc.Cmd.Process == nil {
|
||||
return
|
||||
}
|
||||
_ = proc.Cmd.Process.Kill()
|
||||
}
|
||||
Reference in New Issue
Block a user