mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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 {
|
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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue