Function rustix_openpty::closefrom
source · pub unsafe fn closefrom(from: RawFd)
Expand description
Close all open file descriptors that are at least as great as from
.
Safety
This can close files out from underneath libraries, leaving them holding dangling file descriptors. It’s meant for use in spawning new processes where the existing process state is about to be overwritten anyway.