I am learning how to use the killpg syscall. So for an experiment, I want to start two new processes with the same pgid and then attempt to kill them using killpg.
I read about setsid so I tried something like:
setsid gedit & firefox &
But the two processes: gedit and firefox ended up having two different pgids.