Skip to content

Commit

Permalink
Fix[style]: remove 2 extra semicolons, fix spacing on abort_waiter_se…
Browse files Browse the repository at this point in the history
…tup call
  • Loading branch information
artdeell committed Sep 30, 2024
1 parent fe27118 commit c8ab4e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app_pojavlauncher/src/main/jni/jre_launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ _Noreturn static void* abort_waiter_thread(void* extraArg) {
_Noreturn static void abort_waiter_handler(int signal) {
// Write the final signal into the pipe and block forever.
write(abort_waiter_data.pipe[1], &signal, sizeof(int));
while(1) {};
};
while(1) {}
}

static void abort_waiter_setup() {
// Only abort on SIGABRT as the JVM either emits SIGABRT or SIGKILL (which we can't catch)
Expand Down Expand Up @@ -137,7 +137,7 @@ static jint launchJVM(int margc, char** margv) {
sigaction(sigid, &clean_sa, NULL);
}
// Set up the thread that will abort the launcher with an user-facing dialog on a signal.
abort_waiter_setup();
abort_waiter_setup();

// Boardwalk: silence
// LOGD("JLI lib = %x", (int)libjli);
Expand Down

0 comments on commit c8ab4e5

Please sign in to comment.