lkml.org 
[lkml]   [2004]   [Sep]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 20 Sep 2004 15:29:47 +0400
FromKirill Korotaev <>
Subject[Q] why switch_exec_pids() changes thread group leader pid?
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:06    [from the cache]
©2003-2008