about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-09-09 15:12:47 -0700
committerDan Gohman <dev@sunfishcode.online>2021-09-09 15:20:05 -0700
commit3b974813871a4dee6cac3128a4e3fa5e81125464 (patch)
tree1f3f8cdba2f3596734f1aec79c20a4e493ddbfb7 /library/std/src/sys/unix/process/process_unix.rs
parent497ee321af3b8496eaccd7af7b437f18bab81abf (diff)
downloadrust-3b974813871a4dee6cac3128a4e3fa5e81125464.tar.gz
rust-3b974813871a4dee6cac3128a4e3fa5e81125464.zip
Fix assertion failures in `OwnedHandle` with `windows_subsystem`.
As discussed in #88576, raw handle values in Windows can be null, such
as in `windows_subsystem` mode, or when consoles are detached from a
process. So, don't use `NonNull` to hold them, don't assert that they're
not null, and remove `OwnedHandle`'s `repr(transparent)`. Introduce a
new `HandleOrNull` type, similar to `HandleOrInvalid`, to cover the FFI
use case.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions