send panic event

This commit is contained in:
Simon Wörner
2017-03-31 12:40:52 +02:00
parent 4186c025fa
commit ae814dbe08

View File

@@ -91,8 +91,9 @@ fn main() {
watchdog.join().expect("Watchdog thread paniced");
}
fn watchdog(thread: JoinHandle<()>, sdone: chan::Sender<()>) {
fn watchdog(thread: JoinHandle<()>, spanic: chan::Sender<()>) {
thread.join().expect("Thread paniced");
spanic.send(());
}
fn run(rdone: chan::Receiver<()>) {