by unixnoob · 14y ago · 0 comments
pgrphack sh -c "processes"
Kill the pid for the sh ("agent") and you thereby kill all the processes?Again, sorry for the noob question. I'm still learning and making mistakes.
Say the PGID I get for sh is 321. If I do
kill [signal] 321
that will not kill all the processes having PGID 321?If it would not kill them, then couldn't we modify kill(1) to be able to call kill() with a negative integer as you describe?
Sorry for the noob questions. I am still learning and making mistakes.