From: Kirill Korotaev <dev@sw.ru>
To: linux-kernel@vger.kernel.org
Subject: [Q] why switch_exec_pids() changes thread group leader pid?
Date: Mon, 20 Sep 2004 15:29:47 +0400 [thread overview]
Message-ID: <414EBF2B.5090909@sw.ru> (raw)
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
next reply other threads:[~2004-09-20 11:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-20 11:29 Kirill Korotaev [this message]
2004-09-20 11:46 ` [Q] why switch_exec_pids() changes thread group leader pid? William Lee Irwin III
2004-09-20 12:07 ` Kirill Korotaev
2004-09-20 12:24 ` William Lee Irwin III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=414EBF2B.5090909@sw.ru \
--to=dev@sw.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.