From 4a6e8ee04212f3571196d09077d07678e8239c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Fri, 8 Mar 2024 23:39:24 +0100 Subject: [PATCH] linux: Fix unreliable exec transition logic The file-descriptors aren't necessarily closed until the second trap, which meant we could get stuck waiting. --- src/linux/frida-helper-backend.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/linux/frida-helper-backend.vala b/src/linux/frida-helper-backend.vala index 87e840397..f2d3721ea 100644 --- a/src/linux/frida-helper-backend.vala +++ b/src/linux/frida-helper-backend.vala @@ -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); } }