Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2001 01:43:42 -0700
From:      Dima Dorfman <dima@unixfreak.org>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/28929: [patch] No man page for pfind() 
Message-ID:  <20010713084342.5D7813E31@bazooka.unixfreak.org>
In-Reply-To: <200107130840.f6D8e1N40904@freefall.freebsd.org>; from dwmalone@maths.tcd.ie on "Fri, 13 Jul 2001 01:40:01 -0700 (PDT)"

next in thread | previous in thread | raw e-mail | index | archive | help
David Malone <dwmalone@maths.tcd.ie> writes:
>  In -current I don't think calling pfind requires any locking in
>  -current 'cos it seems to do locking itself,

This is certainly something that should be documented in the man page,
and I didn't see that in the proposed one.  In -current, pfind()
either returns a pointer to a `struct proc` *after* locking it with
PROC_LOCK (so you have to unlock it yourself (using PROC_UNLOCK)), or
NULL if it couldn't find anything (and it obviously doesn't lock NULL :-) ).

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




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