Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030316AbXDPK3c (ORCPT ); Mon, 16 Apr 2007 06:29:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030342AbXDPK3b (ORCPT ); Mon, 16 Apr 2007 06:29:31 -0400 Received: from smtp1.yandex.ru ([213.180.223.87]:5592 "EHLO smtp1.yandex.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030316AbXDPK3b (ORCPT ); Mon, 16 Apr 2007 06:29:31 -0400 X-Comment: RFC 2476 MSA function at smtp1.yandex.ru logged sender identity as: yantux From: yantux Organization: office To: Linux List Subject: [Question about "interactive" clone and waitpid syscalls.] Date: Sun, 15 Apr 2007 23:30:59 -0600 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704152330.59426.yantux@yandex.ru> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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.