From owner-freebsd-current Wed Feb 27 23:50:34 2002 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (cvsup2.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id C93DF37B400 for ; Wed, 27 Feb 2002 23:50:31 -0800 (PST) Received: from sohgo.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (sohgo.carrots.uucp.r.dl.itc.u-tokyo.ac.jp [IPv6:3ffe:b80:5b0:3:200:e8ff:fe14:9f8a]) by rina.r.dl.itc.u-tokyo.ac.jp (8.12.2/3.7W-rina.r-Nankai-Koya) with ESMTP id g1S7nY0j050646 ; Thu, 28 Feb 2002 16:49:36 +0900 (JST) Received: from sohgo.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (localhost [IPv6:::1]) by sohgo.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (8.12.2/3.7W-carrots-Tokyu-Meguro) with ESMTP id g1S7nMnG022525 ; Thu, 28 Feb 2002 16:49:23 +0900 (JST) Received: (from root@localhost) by sohgo.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (8.12.2/3.7W-submit-carrots-Tokyu-Meguro) with UUCP id g1S7meFK022524 ; Thu, 28 Feb 2002 16:48:40 +0900 (JST) Received: from bunko.nkth.carrots.uucp.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by bunko (8.12.2/3.7W-nkth.carrots-Saitama-Misono) with ESMTP id g1S5p8Pp069580 ; Thu, 28 Feb 2002 14:51:08 +0900 (JST) Message-Id: <200202280551.g1S5p8Pp069580@bunko> Date: Thu, 28 Feb 2002 14:51:07 +0900 From: Seigo Tanimura To: HIROSHI OOTA Cc: current@freebsd.org, Seigo Tanimura Subject: Re: setpgrp(1, 1) does not FAIL In-Reply-To: References: <200202271041.g1RAf5Vh080359@rina.r.dl.itc.u-tokyo.ac.jp> User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 28 Feb 2002 13:18:06 +0900, HIROSHI OOTA said: oota> but, It should return EPERM instead of ESRCH. Because ESRCH oota> means `The requested process does not exist'. Setpgrp(2) should fail in this case because pid 1 (which is usually init(8)) is not a child of the curproc, not due to insufficient privilege. ESRCH means that the target process is not found in the children of the curproc. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message