Skip to content

Commit

Permalink
Disable signal handler
Browse files Browse the repository at this point in the history
  • Loading branch information
thejudge156 authored Sep 19, 2024
1 parent 90adbd7 commit dc1dd57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/jni/jre_launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ static jint launchJVM(int margc, char** margv) {
* Signature: ([Ljava/lang/String;)I
*/
JNIEXPORT jint JNICALL Java_com_oracle_dalvik_VMLauncher_launchJVM(JNIEnv *env, jclass clazz, jobjectArray argsArray) {
#ifdef TRY_SIG2JVM
/*
#ifdef TRY_SIG2JVM
void* libjvm = dlopen("libjvm.so", RTLD_LAZY | RTLD_GLOBAL);
if (NULL == libjvm) {
LOGE("JVM lib = NULL: %s", dlerror());
Expand Down Expand Up @@ -149,6 +150,7 @@ JNIEXPORT jint JNICALL Java_com_oracle_dalvik_VMLauncher_launchJVM(JNIEnv *env,
CATCHSIG(SIGPIPE);
CATCHSIG(SIGXFSZ);
//Signal trapper ready
*/

// Save dalvik JNIEnv pointer for JVM launch thread
dalvikJNIEnvPtr_ANDROID = env;
Expand Down

0 comments on commit dc1dd57

Please sign in to comment.