From owner-freebsd-arch@FreeBSD.ORG Thu Mar 15 12:16:16 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9657A106566B for ; Thu, 15 Mar 2012 12:16:16 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 176D88FC24 for ; Thu, 15 Mar 2012 12:16:15 +0000 (UTC) Received: by lboi15 with SMTP id i15so1864078lbo.13 for ; Thu, 15 Mar 2012 05:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=vuFcLXxVeys3aIsO3PMmJ3Lzj99I54CSamwZ8ONazU0=; b=rjZ7t0AjAGkkUZHd2Cuonw2NU0fz2tBi6GYyMC7iBUFkeeD9BgK45naVBoCxoEuZd/ HM3A9l95LW4eeCJ3bhwmhsh+u5e63gOXlRr3BnASZFPBJenQu7CRMIgfEFvO3qJr+axB qDqWw5KKPxMa4kbzNVZs+eQCgCRmJHmZbFBKGXkNahmxvVpFQwYXDDQ4GapX717JSuzb VEd0eeULk//ih9TiJsv+1+ctpbvpmvGs2BxiSfHqM/yn63ZqIuvYTOppyyP0W/37cP2I qFsK/uw71qq1+d5xSEBe8lfcpAkmqKF2TqnViDecTngSwNAoa++aCHU6LC/C491qN8gv hbHA== MIME-Version: 1.0 Received: by 10.112.102.161 with SMTP id fp1mr2211482lbb.71.1331813774412; Thu, 15 Mar 2012 05:16:14 -0700 (PDT) Received: by 10.152.21.73 with HTTP; Thu, 15 Mar 2012 05:16:14 -0700 (PDT) In-Reply-To: <20120314234348.GL27469@hoeg.nl> References: <20120314234348.GL27469@hoeg.nl> Date: Thu, 15 Mar 2012 15:16:14 +0300 Message-ID: From: Sergey Kandaurov To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org Subject: Re: kill(2) man page: ESRCH X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 12:16:16 -0000 On 15 March 2012 03:43, Ed Schouten wrote: > Hi all, > > Just a quick question. The kill(2) man page says: > > =A0 =A0 The kill() system call will fail and no signal will be sent if: > > =A0 =A0 [ESRCH] =A0 =A0 =A0 =A0 =A0 =A0The process id was given as 0 but = the sending process > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0does not have a process gr= oup. > > My question is: is this possible? I thought all processes have a process > group. POSIX also doesn't mention anything about this case specifically. > Shall I zap this? > man killpg(2) should probably be updated as well (and is somewhat referenced from man kill(2): If pid is zero: The sig signal is sent to all processes whose group ID is equa= l to the process group ID of the sender, and for which the proce= ss has permission; this is a variant of killpg(2). ). Currently killpg(2) says: [ESRCH] The process group was given as 0 but the sending process does not have a process group. --=20 wbr, pluknet