about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2015-12-19 17:12:19 -0800
committerIvan Petkov <ivanppetkov@gmail.com>2015-12-25 07:09:36 -0800
commit7f7a059c4719bbff6c2859802bc50ab2fcaf249f (patch)
tree51a9f891865e0ca0f2ad78dcf73ba34cd24f0d96 /src/liballoc_system
parent439e1843b9f53a2ad9e83861f47f95227737e998 (diff)
downloadrust-7f7a059c4719bbff6c2859802bc50ab2fcaf249f.tar.gz
rust-7f7a059c4719bbff6c2859802bc50ab2fcaf249f.zip
libstd: unix process spawning: fix bug with setting stdio
* If the requested descriptors to inherit are stdio descriptors there
  are situations where they will not be set correctly
* Example: parent's stdout --> child's stderr
           parent's stderr --> child's stdout
* Solution: if the requested descriptors for the child are stdio
  descriptors, `dup` them before overwriting the child's stdio
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions