Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1660365imu; Wed, 28 Nov 2018 13:01:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/UsqPNFtOCieHbsfBpjbFUwbiCZizAvlIQNITIBLm9k2tqyQSCpOdnVTQuz/hFrd5Dk0/1t X-Received: by 2002:a17:902:9692:: with SMTP id n18mr16321819plp.333.1543438866405; Wed, 28 Nov 2018 13:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543438866; cv=none; d=google.com; s=arc-20160816; b=mQtWaz2A0ZfePLu6KL+5zpNSj62KO3MLIEoBgPmYI3o/iokQFm545Gr26M1V3P7iyN 3HY+0gxm+Qh/W800O3L4PoGSQcn+n2NrXDtGdv4m6BhGy8KEuTg63Li+DvU2kMPrwDye 5KZAMxPMUN49HPlOrnLfjPjFJYVReu2uxZ7V+l8BBVHts+JcIxc1+3qJF21cGy1sjslq a9cItmmIzqaZQMq7Efci1KYn0Y9MYa2z7uKk+dcDs/1P2Hw894s4rosaYXpSQi9LLW7J cT3mJiXNbANJ1VKk9e3cHJHb+aTaXnQ30yNnaFiHbn6rJf/6gbqgCrr/PZ0relZhPd/z zw1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=frdNOkPXGX3E7PkNYkPvGvX1gY1x53K4NKMkplm5DAg=; b=FDX7zjLMArU4e9zjlf2ddfSL+NPpfKQFBHK4oc3raLvB3X3COEeURyBasGfHeys5ef vHMNCazOR4LY3mwolaGXCrXBsWf2X11VuCtuiy1iI7A3np1UlB4HjGutsddXcvr66Osb LJoLoPUXwYlFp1WF8wBUCx4ig2LIAXoSM3GHdUcxtshi5ZhDrsspWvCTJZ5RAZcarE9i 7m106l1CS0EUou+aPfk5C0pemoijNXZb9U1Z1KkTVnFwocZVKjiPE9sn8CnlZfOtUuFp wh0iOsmyclIO92ocTTCfQasf6br0d0gmpyptVuirNtRecXuROI8FHFZk6jiHWg6inbE4 /Few== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si8511800pgq.139.2018.11.28.13.00.50; Wed, 28 Nov 2018 13:01:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726389AbeK2IDG (ORCPT + 99 others); Thu, 29 Nov 2018 03:03:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54660 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbeK2IDG (ORCPT ); Thu, 29 Nov 2018 03:03:06 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0318230C583F; Wed, 28 Nov 2018 21:00:09 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-131.ams2.redhat.com [10.36.116.131]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2165819754; Wed, 28 Nov 2018 21:00:00 +0000 (UTC) From: Florian Weimer To: Christian Brauner Cc: ebiederm@xmission.com, linux-kernel@vger.kernel.org, serge@hallyn.com, jannh@google.com, luto@kernel.org, akpm@linux-foundation.org, oleg@redhat.com, cyphar@cyphar.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, dancol@google.com, timmurray@google.com, linux-man@vger.kernel.org Subject: Re: [PATCH] procfd_signal.2: document procfd_signal syscall References: <20181119103241.5229-1-christian@brauner.io> <20181119103241.5229-4-christian@brauner.io> Date: Wed, 28 Nov 2018 21:59:52 +0100 In-Reply-To: <20181119103241.5229-4-christian@brauner.io> (Christian Brauner's message of "Mon, 19 Nov 2018 11:32:40 +0100") Message-ID: <87in0g7waf.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 28 Nov 2018 21:00:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Christian Brauner: > +.\" Copyright (C) 2018 Christian Brauner The text seems to be largely derived from rt_sigqueueinfo, so I'm not sure if this appropriate here. > +the null signal (0) can be used to check if a process with a given > +PID exists. What does this mean if hte process is identified by file descriptor? > +.PP > +The optional > +.I info > +argument specifies the data to accompany the signal. > +This argument is a pointer to a structure of type > +.IR siginfo_t , > +described in > +.BR sigaction (2) > +(and defined by including > +.IR ). > +The caller should set the following fields in this structure: > +.TP > +.I si_code > +This must be one of the > +.B SI_* > +codes in the Linux kernel source file > +.IR include/asm-generic/siginfo.h , > +with the restriction that the code must be negative > +(i.e., cannot be > +.BR SI_USER , > +which is used by the kernel to indicate a signal sent by > +.BR kill (2)) > +and cannot (since Linux 2.6.39) be Obsolete reference in this context. > +.TP > +.B ESRCH > +The process or process group does not exist. > +Note that an existing process might be a zombie, > +a process that has terminated execution, but > +has not yet been > +.BR wait (2)ed > +for. Again: What does this mean if the process identified by a descriptor? Does a process in zombie state exist in this sense or not? Thanks, Florian