How to set process group of a shell script
As PSkocik points out, it is possible to run a process in its own process group, in most shells, by activating job control (“monitor mode”). (set -m; exec process_in_its_own_group) Linux has a setsid utility, which runs the command passed as argument in its own session (using the eponymous system call). This is stronger than running … Read more