[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: obtaining process exit code from popen()
- From: "John D. Blair" <jdb@...>
- Date: Mon, 08 Jun 2009 13:41:28 -0700
On Mon, 2009-06-08 at 22:37 +0200, Florian Weimer wrote:
> >> popen() is from POSIX, not ISO C. pclose() does return the exit
> >> status of the child process.
> > That's not true about pclose(), at least not on Linux:
> >>From the Linux popen() man page, which also describes pclose():
> > The pclose() function waits for the associated process to
> > terminate and returns the exit status of the command as returned by
> > wait4(2).
> Which part is not true? I'm confused.
> (Feel free to respond to the mailing list.)
Sorry... I misread your statement... I thought you wrote the opposite of
what you actually did. I need to be more careful before I email.