Skip module loading for isolated processes#127
Merged
Conversation
We implement a connection check to bypass process flag retrieval and module execution for isolated processes when the zygisk daemon is unreachable.
maxsteeel
referenced
this pull request
in maxsteeel/NeoZygisk-fork
Apr 12, 2026
We implement a connection check to bypass process flag retrieval and module execution for isolated processes when the zygisk daemon is unreachable.
larsmartens
pushed a commit
to larsmartens/NeoZygisk
that referenced
this pull request
Apr 12, 2026
We implement a connection check to bypass process flag retrieval and module execution for isolated processes when the zygisk daemon is unreachable. (cherry picked from commit de38c62)
JingMatrix
added a commit
that referenced
this pull request
Apr 29, 2026
Add a connectivity check for isolated processes to avoid the overhead of attempting flag retrieval and module execution when zygiskd is unreachable. This optimization does not change the functional logic, as both GetProcessFlags and run_modules_pre already depend on a successful connection to the daemon to perform any meaningful work. If the daemon is unreachable, these steps would eventually fail or be skipped anyway; performing the check upfront simply avoids redundant IPC attempts. Note: The connection check must use a scoped handle (UniqueFd) to ensure the socket is closed immediately. Failure to do so will result in a file descriptor leak, leading to resource exhaustion and significant app launch delays.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We implement a connection check to bypass process flag retrieval and module execution for isolated processes when the zygisk daemon is unreachable.