delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/15/14:47:43

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 15 Oct 2003 14:47:12 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Steve Fairbairn <steve DOT fairbairn AT perwill DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: setup hangs during postinstall
In-Reply-To: <D721826DEE793D49BC49582C121EDD3E3F55C9@exchange.perwill.com>
Message-ID: <Pine.GSO.4.56.0310151436490.20462@slinky.cs.nyu.edu>
References: <D721826DEE793D49BC49582C121EDD3E3F55C9 AT exchange DOT perwill DOT com>
Importance: Normal
MIME-Version: 1.0

On Wed, 15 Oct 2003, Steve Fairbairn wrote:

> Again, probably going over old ground but I can't find anywhere that it
> has actually been stated for those that can't duplicate the problem,
> that
>         TOPFOLDER="$(cygpath d:/)/Cygwin-XFree86"
> hangs, but
>         cygpath d:/
> doesn't hang?

This was already stated.

> As Brian has noted, Executing the binary with '< /dev/null' stops the
> hanging, but also executing it without capturing the output to a variable
> also stops the hanging.
>
> Could the capturing of the output somehow give the child process an output
> stream but no input one?  Could something be failing because (going on
> CreateProcess API) it was told to inherit file descriptors but there isn't a
> valid input one?
>
> I'm just trying to throw questions at anyone in the hope I might stumble
> across something that makes one of the real geniuses realise what is going
> on.
>
> Please tell me to be quiet if I'm being annoying ;)
> Steve.

You could try testing the following things:

$(cygpath d:/) # don't capture the output but execute cygpath in a subshell
sh -c "cygpath d:/" # force the subshell to be "sh"
$(cat /dev/null | cygpath d:/) # see if pipes work the same as input redirect
$(cygpath d:/ > /tmp/cygpath.out) # see if redirecting output also affects it

I'll let you know if I think of other things to try.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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