IME. */
case ANDROID_KEY_PRESS:
case ANDROID_WINDOW_ACTION:
- raise (SIGIO);
+ kill (getpid (), SIGIO);
break;
default:
{
JNI_STACK_ALIGNMENT_PROLOGUE;
+ __android_log_print (ANDROID_LOG_VERBOSE, __func__,
+ "Sending SIGIO and setting Vquit_flag");
+
/* Raise sigio to interrupt anything that could be reading
input. */
Vquit_flag = Qt;
- raise (SIGIO);
+ kill (getpid (), SIGIO);
}
JNIEXPORT jlong JNICALL
used by the runtime. */
sigfillset (&sigset);
- sigaddset (&sigset, SIGSEGV);
- sigaddset (&sigset, SIGBUS);
+ sigdelset (&sigset, SIGSEGV);
+ sigdelset (&sigset, SIGBUS);
if (pthread_sigmask (SIG_BLOCK, &sigset, NULL))
__android_log_print (ANDROID_LOG_WARN, __func__,
continue processing queries as soon as possible. */
if (__atomic_load_n (&android_urgent_query, __ATOMIC_ACQUIRE))
- raise (SIGIO);
+ kill (getpid (), SIGIO);
again:
rc = sem_timedwait (&android_query_sem, &timeout);
Normally, the main thread waits for the keyboard loop to be
entered before responding, in order to avoid responding with
inaccurate results taken during command executioon. */
- raise (SIGIO);
+ kill (getpid (), SIGIO);
/* Wait for the query to complete. `android_urgent_query' is
only cleared by either `android_select' or