mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Report to logcat when android logging thread terminates unexpectedly.
This commit is contained in:
parent
d22b10391d
commit
4e61d97030
1 changed files with 4 additions and 1 deletions
|
@ -483,7 +483,10 @@ fn redirect_stdout_to_logcat() {
|
|||
let end = if result == 0 {
|
||||
return;
|
||||
} 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 {
|
||||
result as usize + cursor
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue