This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re : [ANNOUNCEMENT] Updated [experimental]: bash-3.2-2

Hash: SHA1

According to Angelo Graziosi on 10/18/2006 1:42 PM:
> I have tried to install this but the installation hangs running
> /etc/postinstall/

Hmm, I saw that too, but cancelling setup.exe and manually running the
script from worked.  I'm not sure what the interaction is that
seems to be causing that.  In looking further, I'm seeing a process tree
that looks like:


I'm not sure how uname is entering the picture; doesn't directly
call uname.  My guess is that somehow the new /bin/bash is thinking that
it should be interactive when invoked by setup.exe, and thus running
uname, then hanging when uname doesn't respond correctly.  I'm baffled as
to what is causing this behavior.  After using /bin/kill -f on that uname,
I then get to the cygpath and sed processes run by the first command
substitution in; those processes also seemed to hang.

On the other hand, I did intentionally skip out on porting one of the
cygwin-specific patches that was in subst.c in 3.1, related to creating
pipes between processes.  The comment along with that patch was:

+#if __CYGWIN__
+  /* Ensure that stdin, stdout, and stderr have a valid file descriptor, so
+     that pipe doesn't end up in those slots; otherwise a hang might
+     result when leaving one end of the pipe open in the subprocess. */
+  int i, closeit[3];
+#endif /* __CYGWIN__ */

I had hoped that cygwin had advanced beyond that point (as it was, CVS
cygwin has a fix in newlib's pipe() call that overcomes a bug in cygwin
1.5.21 and earlier when stdout is closed), but based on the behavior we
both saw, it looks like I will have to port that patch to bash 3.2 after
all, to see if it improves the situation.

- --
Life is short - so eat dessert first!

Eric Blake   
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]