From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E10E41F45A for ; Wed, 14 Aug 2019 16:09:26 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=whtX Adw1Ryq1t5ElRpOwN61EcVORbUokHaRQEBbY1ZTA+XL3QU4y58TwchZlmeLXavAL PDc8B0dcT8v8+Rx2DiKm66+BAQt1v4VSMSelaIMZlxHNkhKTXw7kKMYoKzBp7lbt owiGpXzdwPZbb4QTDLI+xPLnGeboQUvbCBP1fDQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=Lh9joc0UUT nHDcbMw07IA9NYWrg=; b=ia+6yDONBamGPGQ8WiDQiQv3iFZzMwT2g3JitojwKk 6rcrrNoPo3gke5GnQjRQXNSAh5zuLlgLXTqX/cjlSIa9zCd944o0l4Dusg07FkdU IXOqKGZWodbXc5UKVbJnMjR+QMUzvFuwF9G7Nn6u4resY1Wo9etAjnr705DRRJU5 w= Received: (qmail 49783 invoked by alias); 14 Aug 2019 16:09:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 49774 invoked by uid 89); 14 Aug 2019 16:09:24 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com Date: Wed, 14 Aug 2019 18:09:17 +0200 From: Oleg Nesterov To: Christian Brauner Cc: linux-kernel@vger.kernel.org, libc-alpha@sourceware.org, alistair23@gmail.com, ebiederm@xmission.com, arnd@arndb.de, dalias@libc.org, torvalds@linux-foundation.org, adhemerval.zanella@linaro.org, fweimer@redhat.com, palmer@sifive.com, macro@wdc.com, zongbox@gmail.com, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, hpa@zytor.com Subject: Re: [PATCH v3 1/1] waitid: Add support for waiting for the current process group Message-ID: <20190814160917.GG11595@redhat.com> References: <20190814154400.6371-1-christian.brauner@ubuntu.com> <20190814154400.6371-2-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190814154400.6371-2-christian.brauner@ubuntu.com> User-Agent: Mutt/1.5.24 (2015-08-30) On 08/14, Christian Brauner wrote: > > and a signal could come in between the system call that > retrieved the process gorup and the call to waitid that changes the ^^^^^ > current process group. I noticed this typo only because I spent 2 minutes or more trying to understand this sentence ;) But yes, a signal handler or another thread can change pgrp in between. Reviewed-by: Oleg Nesterov