send panic event
This commit is contained in:
@@ -91,8 +91,9 @@ fn main() {
|
|||||||
watchdog.join().expect("Watchdog thread paniced");
|
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");
|
thread.join().expect("Thread paniced");
|
||||||
|
spanic.send(());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn run(rdone: chan::Receiver<()>) {
|
fn run(rdone: chan::Receiver<()>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user