Fix #34: Spack doesn't stop when dep fails to build.

- Fixes regression introduced by #30
- Child process needs to exit on error
This commit is contained in:
Todd Gamblin 2015-05-27 20:27:48 -07:00
parent c622337802
commit 6f8f1bf7af

View File

@ -801,6 +801,7 @@ def real_work():
# Still need to clean up b/c there was an error.
cleanup()
os._exit(1)
except:
# other exceptions just clean up and raise.