diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-01 18:42:28 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-02 15:35:47 -0700 |
| commit | e1858882a49bf0666d4ffb3f45989ac9dbe9c843 (patch) | |
| tree | 71ef322a719ca53ad56124ca37eb5061b49f1c73 /src/rt/rust.cpp | |
| parent | 3654ef00782cf9708196fd438ee08c751a5b699b (diff) | |
| download | rust-e1858882a49bf0666d4ffb3f45989ac9dbe9c843.tar.gz rust-e1858882a49bf0666d4ffb3f45989ac9dbe9c843.zip | |
rt: Run a single-threaded scheduler on the main thread
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 00657f8ec0a..e328f81c391 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -93,7 +93,7 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { root_task->start((spawn_fn)main_fn, NULL, args->args); root_task = NULL; - int ret = kernel->wait_for_exit(); + int ret = kernel->run(); delete args; delete kernel; delete srv; |
