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: [EMAIL PROTECTED]        home: [EMAIL PROTECTED]
Pages: http://www.innotts.co.uk/~robmel    (home page)
        http://www.nadt.org.uk/       (substance misuse pages)
----------------------------------------------------------------------


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to