about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-04 12:21:46 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-05 09:20:31 -0800
commiteadfe0e3c9b55ec48637d5cdae36eca7421a8159 (patch)
treee24dbf2474ff0fe6d1bce1708e127bc21747a925 /src/rustllvm/RustWrapper.cpp
parent4eceb0050c107c4ed18221bde9e5046613a710b6 (diff)
downloadrust-eadfe0e3c9b55ec48637d5cdae36eca7421a8159.tar.gz
rust-eadfe0e3c9b55ec48637d5cdae36eca7421a8159.zip
Don't abort the process in native::start
If the main closure failed, then the `exit_code` variable would still be `None`,
and the `unwrap()` was failing (triggering a process abort). This changes the
`unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when
the native task failed.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions