Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 00:33:32 +0100
From:      Robin Melville <robmel@nadt.org.uk>
To:        freebsd-stable@freebsd.org
Subject:   A very tiny issue
Message-ID:  <v04220805b4fc6273f1ee@[172.16.17.20]>

next in thread | raw e-mail | index | archive | help
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




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