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/>
index | next in thread | raw e-mail
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@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 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246381-9>
