This is unsafe for roughly the same reasons as `OwnedFd::from_raw_fd`. Technically the duplication is also unsafe as it is theorically possible that the fd will be closed before being taken but fcntl should error out in this case so we can safely ignore that. |
||
---|---|---|
.. | ||
error.rs | ||
lib.rs |