From: David van Moolenbroek Date: Mon, 2 Nov 2015 19:20:00 +0000 (+0000) Subject: PM: restore own proper process group X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F3245%2F2;p=minix.git 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 --- 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