fix: use correct destination pid when starting watchers

This commit is contained in:
CJ van den Berg 2026-02-20 19:20:07 +01:00
parent da6a759583
commit 62ec677b9c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -774,7 +774,7 @@ const Process = struct {
errdefer self.deinit();
_ = tp.set_trap(true);
self.backend = Backend.init() catch |e| return tp.exit_error(e, @errorReturnTrace());
self.backend.arm(tp.self_pid().clone()) catch |e| return tp.exit_error(e, @errorReturnTrace());
self.backend.arm(self.parent.clone()) catch |e| return tp.exit_error(e, @errorReturnTrace());
tp.receive(&self.receiver);
}