From owner-freebsd-stable Mon Mar 20 15:36: 7 2000 Delivered-To: freebsd-stable@freebsd.org Received: from carlton.innotts.co.uk (carlton.innotts.co.uk [212.56.32.2]) by hub.freebsd.org (Postfix) with ESMTP id B592F37C230 for ; Mon, 20 Mar 2000 15:36:02 -0800 (PST) (envelope-from robmel@nadt.org.uk) Received: from muffin.highwire.local (pool-1-p15.innotts.co.uk [212.56.33.15]) by carlton.innotts.co.uk (8.9.3/8.9.3) with ESMTP id XAA14832 for ; Mon, 20 Mar 2000 23:36:00 GMT Received: from [172.16.17.20] (robsmac.highwire.local [172.16.17.20]) by muffin.highwire.local (8.9.3/8.9.3) with ESMTP id XAA10879 for ; Mon, 20 Mar 2000 23:33:59 GMT (envelope-from robmel@nadt.org.uk) Mime-Version: 1.0 X-Sender: robmel@mailhost Message-Id: Date: Tue, 21 Mar 2000 00:33:32 +0100 To: freebsd-stable@freebsd.org From: Robin Melville Subject: A very tiny issue Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just a small issue, the man page for popen/pclose has a small inconsistency about the return value from pclose -- man 3 pclose: > The pclose() function waits for the associated process to terminate and > returns the exit status of the command as returned by wait4(). and then... > The pclose() function returns -1 if stream is not associated with a > ``popened'' command, if stream already ``pclosed'', or if wait4 returns > an error. Actually. I believe neither to be true, it returns (-1) if not opened by popen OR exited with a signal other than EINTR, otherwise the exit status as returned by wait4(). Very best wishes Robin. ---------------------------------------------------------------------- Robin Melville, Addiction Information Services Nottingham Alcohol & Drug Team Tel: +44 (0)115 952 9478 Fax: +44 (0)115 952 9421 work: robmel@nadt.org.uk home: robmel@innotts.co.uk Pages: http://www.innotts.co.uk/~robmel (home page) http://www.nadt.org.uk/ (substance misuse pages) ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message