Re: process group problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux