libcore: Add sys::set_exit_status

Sets the process exit code
This commit is contained in:
Brian Anderson
2012-01-12 22:17:21 -08:00
parent dcac427795
commit 0616cba62b
10 changed files with 68 additions and 5 deletions

View File

@@ -82,8 +82,6 @@ void
rust_scheduler::fail() {
log(NULL, log_err, "domain %s @0x%" PRIxPTR " root task failed",
name, this);
I(this, kernel->rval == 0);
kernel->rval = PROC_FAIL_CODE;
kernel->fail();
}