fix use of SetHandleInformation on UWP
This commit is contained in:
parent
e1ec3260d7
commit
4f637ee30b
4 changed files with 15 additions and 1 deletions
|
@ -206,6 +206,7 @@ impl OwnedHandle {
|
|||
}
|
||||
|
||||
/// Allow child processes to inherit the handle.
|
||||
#[cfg(not(target_vendor = "uwp"))]
|
||||
pub(crate) fn set_inheritable(&self) -> io::Result<()> {
|
||||
cvt(unsafe {
|
||||
c::SetHandleInformation(
|
||||
|
|
|
@ -10,6 +10,7 @@ use crate::mem;
|
|||
use crate::mem::forget;
|
||||
use crate::sys;
|
||||
use crate::sys::c;
|
||||
#[cfg(not(target_vendor = "uwp"))]
|
||||
use crate::sys::cvt;
|
||||
|
||||
/// A borrowed socket.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue