Skip to main content

fd_take

Function fd_take 

Source
pub fn fd_take(gfd: i32) -> Option<RawFd>
Expand description

Removes a guest FD mapping and returns the host fd (lock-free).

For stdio 0–2: marks the slot closed and returns the host fd (identity) so the caller can close it — matching Darwin when fetch-pack drops stdout.