about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-28 22:41:38 -0700
committerbors <bors@rust-lang.org>2014-05-28 22:41:38 -0700
commita6a1c9071ae88a6a846a5d68923be1e1575518c6 (patch)
treead5988ee6f3a960d5c331dde08c0acef0d2ddc85 /src/rustllvm/RustWrapper.cpp
parent1489374750534983db10a6e44b948103c4778ce3 (diff)
parent034eb4e724bf138bd2d90268cd0e759f99f0d396 (diff)
downloadrust-a6a1c9071ae88a6a846a5d68923be1e1575518c6.tar.gz
rust-a6a1c9071ae88a6a846a5d68923be1e1575518c6.zip
auto merge of #14477 : alexcrichton/rust/issue-14456, r=brson
When spawning a process, stdio file descriptors can be configured to be ignored,
which basically means that they'll be closed. Currently this is done by
literally closing the file descriptors in the child, but this can have adverse
side effects if the child process then opens a new file descriptor, assigning it
to a stdio number.

To work around the problems of the child, this commit alters the process
spawning code to map stdio fds to /dev/null on unix (and a similar equivalent on
windows) when they are specified as being ignored. This should allow spawned
programs to have more expected behavior when opening new files.

Closes #14456
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions