Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2020 19:15:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 246381] popen(3) doesn't say if pclose sets errno when it returns -1
Message-ID:  <bug-246381-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246381

            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@FreeBSD.org
          Reporter: yuri@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 fa=
il,
>      or if it cannot allocate memory.
>=20
>      The pclose() function returns -1 if stream is not associated with a
>      =E2=80=9Cpopened=E2=80=9D command, if stream already =E2=80=9Cpclose=
d=E2=80=9D, or if wait4(2) returns an
>      error.
>=20
> ERRORS
>      The popen() function does not reliably set errno.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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