pub fn kill(child: *Child, io: Io) void
Requests for the operating system to forcibly terminate the child process, then blocks until it terminates, then cleans up all resources.
Idempotent and does nothing after wait returns.
wait
Uncancelable. Ignores unexpected errors from the operating system.
child: *Child
io: Io
134 135 136 137 138 139 140 141 142 143
pub fn kill(child: *Child, io: Io) void { if (child.id == null) { assert(child.stdin == null); assert(child.stdout == null); assert(child.stderr == null); return; } io.vtable.childKill(io.userdata, child); assert(child.id == null); }
Requests for the operating system to forcibly terminate the child process, then blocks until it terminates, then cleans up all resources.
Idempotent and does nothing after
waitreturns.Uncancelable. Ignores unexpected errors from the operating system.