From: yantux <yantux@yandex.ru>
To: Linux List <linux-kernel@vger.kernel.org>
Subject: clone and waitpid syscall: return strange error
Date: Sun, 15 Apr 2007 21:41:47 -0600 [thread overview]
Message-ID: <200704152141.47138.yantux@yandex.ru> (raw)
Help my please.
Question about "interactive" clone and waitpid syscalls.
Describe.
Process was create five a process using clone syscall.
Two clone calling with CLONE_THREAD, other three without CLONE_THREAD.
After then process was calling waitpid(getpid, &status, __WNOTHREAD),
then it must not checkout process, that was created by clone with
CLONE_THREAD, is not it?
Questions.
Where define thread_info struct?
Where define list_head struct?
I right understand, that in kernel/fork.c, copy_process() function add process
to thread group?
//1171 string number
list_add_tail_rcu(&p->thread_group, &p->group_leader->thread_group);
And do_wait contain next_thread too, but waitpid(getpid(), &status, __WALL) it
is good, but really waitpid syscall not return info about thread, because
return error "no child process".
I sure that is not right, or I delusion? I waiting from waitpid info about
thread, but not error.
Best regards,
yantux.
reply other threads:[~2007-04-16 8:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200704152141.47138.yantux@yandex.ru \
--to=yantux@yandex.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®