// -*- rust -*- // xfail-win32 use std; import task; import comm::port; import comm::recv; fn child(&&_i: ()) { assert (1 == 2); } fn parent(&&_i: ()) { // Since this task isn't supervised it won't bring down the whole // process task::unsupervise(); let p = port::(); task::spawn((), child); let x = recv(p); } fn main() { task::spawn((), parent); }