Report to logcat when android logging thread terminates unexpectedly.

This commit is contained in:
Josh Matthews 2018-10-15 10:45:52 -04:00
parent d22b10391d
commit 4e61d97030

View file

@ -483,7 +483,10 @@ fn redirect_stdout_to_logcat() {
let end = if result == 0 { let end = if result == 0 {
return; return;
} else if result < 0 { } else if result < 0 {
return; /* TODO: report problem */ unsafe {
__android_log_write(3, tag, b"error in log thread; closing\0".as_ptr() as *const _);
}
return;
} else { } else {
result as usize + cursor result as usize + cursor
}; };