delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/15/15:00:27

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: eos.vss.fsi.com: ford owned process doing -bs
Date: Wed, 15 Oct 2003 14:00:06 -0500 (CDT)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: cygwin AT cygwin DOT com
Subject: Re: setup hangs during postinstall
In-Reply-To: <20031015184121.GC28402@redhat.com>
Message-ID: <Pine.GSO.4.56.0310151353340.823@eos>
References: <D721826DEE793D49BC49582C121EDD3E3F55C9 AT exchange DOT perwill DOT com>
<20031015184121 DOT GC28402 AT redhat DOT com>
MIME-Version: 1.0

On Wed, 15 Oct 2003, Christopher Faylor wrote:

> On Wed, Oct 15, 2003 at 07:24:53PM +0100, Steve Fairbairn wrote:
> >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.
>
> I would guess that something like
>
> foo=`bar`
>
> is what is causing the problem because this uses a pipe for
> communication.  In a shell that is run from setup.exe, it is possible
> that stdin is not opened at all and stdout is the pipe in question.
> Maybe this is somehow confusing the SHF* function.
>
Yes.  I thought this had always been clear.

Since this only happens in bash, and not in sh, I doubt that is the
problem.  Are we looking at some kind of weird bash bug here?  We have
almost eliminated most of Cygwin since MINGW SHLWAPI executables exhibit
the problem.

> So, the question is does something like this also hang?
>
> #!/bin/bash
> exec 0<&- 1>&-
> cygpath -S | cat
>
> when invoked from the command line?  Or possibly via "Run"?
>
Not from within a setup postinstall script, so the others are probably not
meaningfull.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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