File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -926,7 +926,7 @@ pub unsafe extern "C" fn _rust_glue_entry(native_app: *mut ffi::android_app) {
926
926
} ;
927
927
928
928
thread:: Builder :: new ( )
929
- . name ( "android- stdio" . to_string ( ) )
929
+ . name ( "stdio-to-logcat " . to_string ( ) )
930
930
. spawn ( move || {
931
931
let tag = CStr :: from_bytes_with_nul ( b"RustStdoutStderr\0 " ) . unwrap ( ) ;
932
932
let mut reader = BufReader :: new ( file) ;
@@ -960,7 +960,7 @@ pub unsafe extern "C" fn _rust_glue_entry(native_app: *mut ffi::android_app) {
960
960
unsafe {
961
961
// Name thread - this needs to happen here after attaching to a JVM thread,
962
962
// since that changes the thread name to something like "Thread-2".
963
- let thread_name = CStr :: from_bytes_with_nul ( b"android-main \0 " ) . unwrap ( ) ;
963
+ let thread_name = CStr :: from_bytes_with_nul ( b"android_main \0 " ) . unwrap ( ) ;
964
964
libc:: pthread_setname_np ( libc:: pthread_self ( ) , thread_name. as_ptr ( ) ) ;
965
965
966
966
let app = AndroidApp :: from_ptr ( NonNull :: new ( native_app) . unwrap ( ) , jvm. clone ( ) ) ;
Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ extern "C" fn ANativeActivity_onCreate(
846
846
} ;
847
847
848
848
std:: thread:: Builder :: new ( )
849
- . name ( "android- stdio" . to_string ( ) )
849
+ . name ( "stdio-to-logcat " . to_string ( ) )
850
850
. spawn ( move || {
851
851
let tag = CStr :: from_bytes_with_nul ( b"RustStdoutStderr\0 " ) . unwrap ( ) ;
852
852
let mut reader = BufReader :: new ( file) ;
@@ -904,7 +904,7 @@ extern "C" fn ANativeActivity_onCreate(
904
904
unsafe {
905
905
// Name thread - this needs to happen here after attaching to a JVM thread,
906
906
// since that changes the thread name to something like "Thread-2".
907
- let thread_name = CStr :: from_bytes_with_nul ( b"android-main \0 " ) . unwrap ( ) ;
907
+ let thread_name = CStr :: from_bytes_with_nul ( b"android_main \0 " ) . unwrap ( ) ;
908
908
libc:: pthread_setname_np ( libc:: pthread_self ( ) , thread_name. as_ptr ( ) ) ;
909
909
910
910
// We want to specifically catch any panic from the application's android_main
You can’t perform that action at this time.
0 commit comments