1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 03:06:23 -08:00

Block profiling signals in the Android UI thread

* java/org/gnu/emacs/EmacsNative.java (EmacsNative): New
function `setupSystemThread'.
* java/org/gnu/emacs/EmacsService.java (onCreate): Block all
signals except for SIGBUS and SIGSEGV in the UI thread.
* src/android.c (setupSystemThread): New function.
This commit is contained in:
Po Lu 2023-06-09 14:03:50 +08:00
parent 7f073df533
commit c321eea5af
3 changed files with 53 additions and 0 deletions

View file

@ -188,6 +188,10 @@ public final class EmacsNative
KEYCODE_VOLUME_MUTE should be forwarded to Emacs. */
public static native boolean shouldForwardMultimediaButtons ();
/* Initialize the current thread, by blocking signals that do not
interest it. */
public static native void setupSystemThread ();
/* Input connection functions. These mostly correspond to their