kernel/signal: send_signal_to_process_group() leaks a group reference

* this fixes a few tests of sortix/os-test/process.

Change-Id: Ia20fd9c6e18919ce3c09d1886899f5ef547a2af8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9756
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2025-10-27 19:20:58 +00:00
committed by waddlesplash
parent a6432a2ba0
commit 8da1843374
+1 -1
View File
@@ -1872,7 +1872,7 @@ send_signal_to_process_group(pid_t groupID, const Signal& signal, uint32 flags)
ProcessGroup* group = ProcessGroup::Get(groupID);
if (group == NULL)
return B_BAD_TEAM_ID;
BReference<ProcessGroup> groupReference(group);
BReference<ProcessGroup> groupReference(group, true);
T(SendSignal(-group->id, signal.Number(), flags));