about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-03 15:34:15 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-09 17:09:37 -0700
commit33a2191d0b880242b3bf9a32477a6b432f931c80 (patch)
tree1a03accf8685cbaeefdde4a93cdb70ea2532a71c /src/test/codegen/stack-alloc-string-slice.cc
parentd6c72306c8fc2ec0fd9d6e499c32f2bf52f0b8ba (diff)
downloadrust-33a2191d0b880242b3bf9a32477a6b432f931c80.tar.gz
rust-33a2191d0b880242b3bf9a32477a6b432f931c80.zip
std: Clean up process spawn impl on unix
* De-indent quite a bit by removing usage of FnOnce closures
* Clearly separate code for the parent/child after the fork
* Use `fs2::{File, OpenOptions}` instead of calling `open` manually
* Use RAII to close I/O objects wherever possible
* Remove loop for closing all file descriptors, all our own ones are now
  `CLOEXEC` by default so they cannot be inherited
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions