Documentation
¶
Overview ¶
Package executil wraps os/exec so child processes can be hidden on Windows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandContext ¶
CommandContext builds an exec.Cmd whose cancellation kills the whole process group, not just the direct child (P1-17). Without this, a cancelled python adapter would die while the claude CLI it spawned kept running as an orphan — burning tokens and holding file locks. The child is put in its own process group (Setpgid) so Cancel can signal the group by negative pid.
Types ¶
type Capture ¶
type Capture struct {
// contains filtered or unexported fields
}
Capture is an io.Writer that accumulates output up to captureCap bytes, then appends a truncation marker once and discards further writes. It always reports the full write length so the child never sees a short-write error.