hi,
it is known that child inherit the process group ID of its parent then, why the process run by the shell do not inherit its
(shell) process group ID??
suppose process p1 is run from the shell and it forks process p2 then p2 inherit process group of p1 but p1 doesn't inherit the proces group of shell....( can be seen by command ps -xj )
even i'm doing it in kernel < copy_process() in fork.c >
like p->pgrp = p->parent->pgrp
(p is task structure of child process)
it is not working, why is it so..??
any idea....
surendra singh bisht