mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* clone and waitpid syscall: return strange error
@ 2007-04-16  3:41 yantux
  0 siblings, 0 replies; only message in thread
From: yantux @ 2007-04-16  3:41 UTC (permalink / raw)
  To: Linux List

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-16  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16  3:41 clone and waitpid syscall: return strange error yantux

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®