Message-ID: <361D45EE.462E13B5@gmx.net> Date: Thu, 08 Oct 1998 22:08:30 -0100 From: Robert Hoehne Organization: none provided X-Mailer: Mozilla 4.01 [de] (Win95; I) MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: Bug in popen X-Priority: 3 (Normal) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote : > If we are here I will report an other bug (without an patch). Anywhere in the docs and also in popen.c it is documented, that pclose returns zero for success and nonzero for failure. But effectively pclose return in the case of success the return value of the piped program. This is very wrong, since for instance cvs uses popen/pclose when running diff3 and if diff3 returns a nonzero value, cvs things that pclose failed and it aborts. BTW: because I hadn't the time I hardly fixed this by patching diff3 to return always zero, but this should not be the solution. Robert -- ****************************************************** * email: Robert Hoehne * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************