From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754853AbbCMCH3 (ORCPT ); Thu, 12 Mar 2015 22:07:29 -0400 Received: from mga03.intel.com ([134.134.136.65]:5531 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752449AbbCMCH0 (ORCPT ); Thu, 12 Mar 2015 22:07:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,391,1422950400"; d="scan'208";a="540267026" From: Thiago Macieira To: Josh Triplett Cc: Al Viro , Andrew Morton , Andy Lutomirski , Ingo Molnar , Kees Cook , Oleg Nesterov , "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 0/6] CLONE_FD: Task exit notification via file descriptor Date: Thu, 12 Mar 2015 19:07:20 -0700 Message-ID: <3680453.hkn7TyP8Y0@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: References: 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 Thursday 12 March 2015 18:40:03 Josh Triplett wrote: > This patch series introduces a new clone flag, CLONE_FD, which lets the > caller handle child process exit notification via a file descriptor rather > than SIGCHLD. CLONE_FD makes it possible for libraries to safely launch > and manage child processes on behalf of their caller, *without* taking over > process-wide SIGCHLD handling (either via signal handler or signalfd). FYI, the matching use of this feature in Qt can be found at: https://codereview.qt-project.org/108455 https://codereview.qt-project.org/108456 The forkfd.c file this modifies aims at implementing the semantics of CLONE_FD for the fork case when support for CLONE_FD is missing in the kernel. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thiago Macieira Subject: Re: [PATCH 0/6] CLONE_FD: Task exit notification via file descriptor Date: Thu, 12 Mar 2015 19:07:20 -0700 Message-ID: <3680453.hkn7TyP8Y0@tjmaciei-mobl4> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Al Viro , Andrew Morton , Andy Lutomirski , Ingo Molnar , Kees Cook , Oleg Nesterov , "Paul E. McKenney" , "H. Peter Anvin" , Rik van Riel , Thomas Gleixner , Michael Kerrisk , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org To: Josh Triplett Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Thursday 12 March 2015 18:40:03 Josh Triplett wrote: > This patch series introduces a new clone flag, CLONE_FD, which lets the > caller handle child process exit notification via a file descriptor rather > than SIGCHLD. CLONE_FD makes it possible for libraries to safely launch > and manage child processes on behalf of their caller, *without* taking over > process-wide SIGCHLD handling (either via signal handler or signalfd). FYI, the matching use of this feature in Qt can be found at: https://codereview.qt-project.org/108455 https://codereview.qt-project.org/108456 The forkfd.c file this modifies aims at implementing the semantics of CLONE_FD for the fork case when support for CLONE_FD is missing in the kernel. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center