Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

kill

Public Function
std.process.Child.kill
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.

Uncancelable. Ignores unexpected errors from the operating system.

Params

File

process/Child.zig:134
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);
}