delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/06/02:57:34

Date: Wed, 6 Dec 2000 09:52:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: popen hanging eventually
In-Reply-To: <90kefp$d7a$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1001206095004.10098G-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 6 Dec 2000 vonbane AT my-deja DOT com wrote:

> in dos mode it works fine, its only when running it from a dos window in
> windows when the problem occurs.  its usually been around 12-13 loops
> before it fails to read anything from the pfp file pointer.

Modify your program to pause when the problem happens (e.g., by
calling `getch').  Then open another DOS box, look at the temporary
file created by `popen', and tell what does it contain.

(You can find the temporary file used by `popen' in the `tmp'
subdirectory of the DJGPP installation directory, by sorting the files
there by their creation time.)

Also, what kind of program is `rsh'?  Is it a Windows program, a DJGPP 
program, or compiled with some other compiler?  You say that it works on 
DOS, so I guess it's not a Windows program; in that case, what network 
library does it use to connect to the Unix host?

- Raw text -


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