www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/10/08/17:34:42

Message-ID: <361D45EE.462E13B5@gmx.net>
Date: Thu, 08 Oct 1998 22:08:30 -0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 981008184738 DOT 2531C-100000 AT is>
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 <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019