From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751882AbbCTSqr (ORCPT ); Fri, 20 Mar 2015 14:46:47 -0400 Received: from mga03.intel.com ([134.134.136.65]:1432 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbbCTSqm (ORCPT ); Fri, 20 Mar 2015 14:46:42 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,438,1422950400"; d="scan'208";a="470223119" From: Thiago Macieira To: Oleg Nesterov Cc: Josh Triplett , 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 v2 5/7] clone4: Add a CLONE_AUTOREAP flag to automatically reap the child process Date: Fri, 20 Mar 2015 11:46:33 -0700 Message-ID: <1766646.jusoNDOCPE@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: <20150320181404.GA26343@redhat.com> References: <20150315233439.GA31890@thin> <20150320181404.GA26343@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 Friday 20 March 2015 19:14:04 Oleg Nesterov wrote: > Also. I forgot that the kernel always resets ->exit_signal to SIGCHLD on > exec or reparenting. Reparenting is probably fine. But what about exec? > Should it keep ->exit_signal == 0 if "autoreap" ? I think it should not, to > avoid the strange special case. Not delivering any signal was the objective of this patch series, so yes exit_signal == 0 should survive an exec and even re-exec. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center