delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <200201301613.g0UGDhJ13915@phobos.space.swri.edu> |
Date: | Wed, 30 Jan 2002 10:10:45 -0600 (CST) |
From: | Joey Mukherjee <joey AT phobos DOT space DOT swri DOT edu> |
Reply-To: | Joey Mukherjee <joey AT phobos DOT space DOT swri DOT edu> |
Subject: | Problem with pipes, Cygwin 1.3.9, Win98 |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
X-Mailer: | dtmail 1.3.0 @(#)CDE Version 1.3.5 SunOS 5.7 sun4u sparc |
Hello! Something changed between Cygwin 1.3.6 and 1.3.9 on handling of pipes on the Windows 98 platform. Here's a small Tcl code snippet: set pipe [open "| db_create $fileName >> $null_device" w] foreach value $cmds { puts $pipe $value } close $pipe $null_device is in the case of Windows, "NUL". "db_create" is a program which takes its input from stdin and using Tcl, I am opening a pipe to that program. I will write all the cmds (which is a list of tokens) into the pipe and then close the pipe. This all works on Windows 2000. In Windows 98, however, the pipe can not be closed and my program will hang on the "close $pipe" line. This used to work on Cygwin 1.3.6. I am not sure which revision broke it, but it does not work on 1.3.9. Any suggestions? Thanks, Joey +--------------------------------------------------------------------------+ + + + Joey Mukherjee "The price of freedom is eternal + + joey AT swri DOT org vigilance, or $12.50 as seen on + + E-Bay... + + + +--------------------------------------------------------------------------+ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |