Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 14:51:07 +0900
From:      Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
To:        HIROSHI OOTA <oota@LSi.nec.co.jp>
Cc:        current@freebsd.org, Seigo Tanimura <tanimura@nkth.carrots.uucp.r.dl.itc.u-tokyo.ac.jp>
Subject:   Re: setpgrp(1, 1) does not FAIL
Message-ID:  <200202280551.g1S5p8Pp069580@bunko>
In-Reply-To: <cwelj6s0ht.wl@sdlpc374.ulsys.lsi.nec.co.jp>
References:  <cwu1s3qv94.wl@sdlpc374.ulsys.lsi.nec.co.jp> <200202271041.g1RAf5Vh080359@rina.r.dl.itc.u-tokyo.ac.jp> <cwelj6s0ht.wl@sdlpc374.ulsys.lsi.nec.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Feb 2002 13:18:06 +0900,
  HIROSHI OOTA <oota@LSi.nec.co.jp> 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 <tanimura@r.dl.itc.u-tokyo.ac.jp> <tanimura@FreeBSD.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202280551.g1S5p8Pp069580>