All of lore.kernel.org
 help / color / mirror / Atom feed
* [Q] why switch_exec_pids() changes thread group leader pid?
@ 2004-09-20 11:29 Kirill Korotaev
  2004-09-20 11:46 ` William Lee Irwin III
  0 siblings, 1 reply; 4+ messages in thread
From: Kirill Korotaev @ 2004-09-20 11:29 UTC (permalink / raw)
  To: linux-kernel

Hello,

I've been looking through switch_exec_pids() function and found that it 
changes thread group leader PID/TGID. Is it really a good idea to change 
  pid of the process during it's lifetime? I could understand if it was 
happenning in the context of that process, but pid changes everytime a 
thread calls do_execve().

As far as I can see, leader doesn't have to do any of detach_pid()'s. 
Instead thread should change it's PID/TGID.

Am I wrong?

Kirill


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-20 12:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 11:29 [Q] why switch_exec_pids() changes thread group leader pid? Kirill Korotaev
2004-09-20 11:46 ` William Lee Irwin III
2004-09-20 12:07   ` Kirill Korotaev
2004-09-20 12:24     ` William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.