Date: Wed, 6 Dec 2000 09:52:04 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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?