Handle failure conditions correctly in pipes.

This commit is contained in:
Eric Holk 2012-07-10 10:58:44 -07:00
parent d07e537fc3
commit 26e6eb3d14
6 changed files with 48 additions and 19 deletions

View file

@ -930,11 +930,11 @@ task_clear_event_reject(rust_task *task) {
// Waits on an event, returning the pointer to the event that unblocked this
// task.
extern "C" void *
task_wait_event(rust_task *task) {
task_wait_event(rust_task *task, bool *killed) {
// TODO: we should assert that the passed in task is the currently running
// task. We wouldn't want to wait some other task.
return task->wait_event();
return task->wait_event(killed);
}
extern "C" void