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_kernel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rt/rust_kernel.h') diff --git a/src/rt/rust_kernel.h b/src/rt/rust_kernel.h index ff5b100445e..774f7f4d0a4 100644 --- a/src/rt/rust_kernel.h +++ b/src/rt/rust_kernel.h @@ -52,6 +52,8 @@ public: void *realloc(void *mem, size_t size); void free(void *mem); + void fail(); + int start_task_threads(); #ifdef __WIN32__ -- cgit 1.4.1-3-g733a5