[uClibc]popen bug?

Erik Andersen andersen at codepoet.org
Thu Jul 25 04:27:00 UTC 2002


On Mon Jul 22, 2002 at 03:53:31PM -0700, Joseph Chiu wrote:
> Hi,
> 
> I have a patch for popen().
> 
> Under uclibc, the popen call fails when stdout is already closed (uncomment
> the close(1)); but this works fine under gcc.
> 
> The affected section reads:
> 				close(reading);
> 				if (pr != reading) {
> 					dup2(pr, reading);
> 					close(pr);

Sorry it took me a while to get to this one.  I wasn't able to 
duplicate the problem.  Looking closer, it turns out that this
bug was fixed in February....  

    http://uclibc.org/cgi-bin/cvsweb/uClibc/libc/stdio/popen.c.diff?r1=1.5&r2=1.6

What version of uClibc are you working with?

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list