From 5c42ed5509741bfd7f441357d4dc4c7c276bbea6 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 2 Nov 2015 19:20:00 +0000 Subject: [PATCH] PM: restore own proper process group PM uses its own process table entry as source for kernel signals, and temporarily changes its own process group to make the signals arrive at the right processes. However, the value is never reset, with as result that the temporary value shows up in ps(1) output. Change-Id: Ib7f635b2cf1958055123736dfd58c26530632785 --- minix/servers/pm/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/minix/servers/pm/signal.c b/minix/servers/pm/signal.c index 6c18f3f18..d793d8a15 100644 --- a/minix/servers/pm/signal.c +++ b/minix/servers/pm/signal.c @@ -330,6 +330,7 @@ int process_ksig(endpoint_t proc_nr_e, int signo) break; } check_sig(id, signo, TRUE /* ksig */); + mp->mp_procgrp = 0; /* restore proper PM process group */ /* If SIGSNDELAY is set, an earlier sys_stop() failed because the process was * still sending, and the kernel hereby tells us that the process is now done