[Bug 246381] popen(3) doesn't say if pclose sets errno when it returns -1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 11 19:15:24 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246381
Bug ID: 246381
Summary: popen(3) doesn't say if pclose sets errno when it
returns -1
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Documentation
Assignee: doc at FreeBSD.org
Reporter: yuri at freebsd.org
The relevant part of popen(3) looks like this and doesn't say anything errno
during pclose() failure.
> The popen() function returns NULL if the fork(2) or pipe(2) calls fail,
> or if it cannot allocate memory.
>
> The pclose() function returns -1 if stream is not associated with a
> “popened” command, if stream already “pclosed”, or if wait4(2) returns an
> error.
>
> ERRORS
> The popen() function does not reliably set errno.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-doc
mailing list