From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751946AbbCNSij (ORCPT ); Sat, 14 Mar 2015 14:38:39 -0400 Received: from mga14.intel.com ([192.55.52.115]:31264 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbbCNSig (ORCPT ); Sat, 14 Mar 2015 14:38:36 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,401,1422950400"; d="scan'208";a="467314854" From: Thiago Macieira To: Oleg Nesterov Cc: josh@joshtriplett.org, Al Viro , Andrew Morton , Andy Lutomirski , Ingo Molnar , Kees Cook , "Paul E. McKenney" , "H. Peter Anvin" , Rik van Riel , Thomas Gleixner , Michael Kerrisk , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH 6/6] clone4: Introduce new CLONE_FD flag to get task exit notification via fd Date: Sat, 14 Mar 2015 11:38:29 -0700 Message-ID: <28025621.k7WkrfHd4d@tjmaciei-mobl4> Organization: Intel Corporation User-Agent: KMail/4.14.5 (Linux/3.11.10-25-desktop; KDE/4.14.5; x86_64; ; ) In-Reply-To: <20150314143235.GA12086@redhat.com> References: <20150314141414.GA11062@redhat.com> <20150314143235.GA12086@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 14 March 2015 15:32:35 Oleg Nesterov wrote: > It is not clear to me what do_wait() should do with ->autoreap child, even > ignoring ptrace. > > Just suppose that real_parent has a single "autoreap" child. Should > wait(NULL) hanf then? It should ignore the child that is set to autoreap. wait(NULL) should return - ECHILD, indicating there are no children waiting to be reaped. But now I realise that this might have implications for session management and job control. > If yes, who will wake the parent up? > > If no, I do not see the necessary changes in wait_cosnider_task(). -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center