Skip to content

Commit

Permalink
linux: Fix unreliable exec transition logic
Browse files Browse the repository at this point in the history
The file-descriptors aren't necessarily closed until the second trap,
which meant we could get stuck waiting.
  • Loading branch information
oleavr committed Mar 13, 2024
1 parent 7d19d3f commit 4a6e8ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/linux/frida-helper-backend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,8 @@ namespace Frida {

public async void wait_for_exec (Cancellable? cancellable) throws Error, IOError {
yield wait_for_signal (TRAP, cancellable);
step ();
yield wait_for_signal (TRAP, cancellable);
}
}

Expand Down

0 comments on commit 4a6e8ee

Please sign in to comment.