On Tuesday 25 January 2005 08:56, surendra singh bisht wrote: > 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?? After the shell does the fork() the child changes its PGID before doing the exec. Also all commands in a pipeline will be in the same process group. That way, signals sent to the process group affect the whole command even it composed of multiple processes without affecting the shell or other commands. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/