Skip to contentSkip to conversation

process group problem

KJ surendra singh bisht 3 participants 3 messages Jan 25, 2005 – Jan 26, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

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

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 2 lines · surendra singh bisht

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??

you posted to a wrong mailinglist:
better ask such questions on your local unix group, or for your local guru?
have fun exploring the unixverse.

--
maks

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#2 lore raw
In reply to surendra singh bisht
Quoted 10 lines · maximilian attems
Quoted 3 lines · surendra singh bisht

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??

you posted to a wrong mailinglist:
better ask such questions on your local unix group, or for your local guru?
have fun exploring the unixverse.

kernelnewbies mailing list could be a place for this question.

Have A Good Day.

Signature · 1 line
Christophe

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors