Skip to content

Commit

Permalink
Fix comments being wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
opa334 committed Dec 19, 2024
1 parent 4f6b237 commit 797d7bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BaseBin/forkfix/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ __attribute__((constructor)) static void initializer(void)
else {
void *systemhookHandle = dlopen("systemhook.dylib", RTLD_NOLOAD);
if (systemhookHandle) {
// On iOS 15 arm64e, instead of using instruction replacements, rebind __fork instead
// Less instruction replacements = Less spinlock panics
// On iOS 15 arm64e, instead of using instruction replacements, rebind everything that calls __fork instead
// Less instruction replacements = Less spinlock panics (DO NOT QUOTE ME ON THIS)
kern_return_t (*litehook_rebind_symbol_globally)(void *source, void *target) = dlsym(systemhookHandle, "litehook_rebind_symbol_globally");
if (litehook_rebind_symbol_globally) {
litehook_rebind_symbol_globally((void *)fork, (void *)fork_hook);
Expand Down

0 comments on commit 797d7bb

Please sign in to comment.