From 0cd607bcbdc70d3d7ccefd5faf830cc8e5d68c86 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 10 Aug 2011 12:57:53 -0700 Subject: rt: Shutdown gracefully on failure When the kernel fails, kill all tasks and wait for the schedulers to stop instead of just exiting. I'm sure there are tons of lurking issues here but this is enough to fail without leaking (at least in the absence of cleanups). --- src/rt/rust_upcall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rt/rust_upcall.cpp') diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp index 5feffe600c3..cd8d9b96e2e 100644 --- a/src/rt/rust_upcall.cpp +++ b/src/rt/rust_upcall.cpp @@ -195,8 +195,8 @@ upcall_fail(rust_task *task, size_t line) { LOG_UPCALL_ENTRY(task); LOG_ERR(task, upcall, "upcall fail '%s', %s:%" PRIdPTR, expr, file, line); - task->fail(); task->die(); + task->fail(); task->notify_tasks_waiting_to_join(); task->yield(4); } -- cgit 1.4.1-3-g733a5