This "double fork" technique is even used this way on purpose in some code. ( for systems that lack setpgrp )
It's probably easier to demonstrate the process group waiting by spawning multiple children...
In reply to Re: waiting on a process group
by kschwab
in thread waiting on a process group
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |