diff --git a/src/linux/frida-helper-backend.vala b/src/linux/frida-helper-backend.vala index 9da2152c4..ed84fc4d6 100644 --- a/src/linux/frida-helper-backend.vala +++ b/src/linux/frida-helper-backend.vala @@ -1931,6 +1931,10 @@ namespace Frida { try { yield suspend (null); close (); + } catch (Error e) { + // If the process is gone, then there's no point in retrying. + if (e is Error.PROCESS_NOT_FOUND) + attach_state = ALREADY_ATTACHED; } catch (GLib.Error e) { } }