This is the mail archive of the cygwin-developers@sourceware.cygnus.com 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]

Re: snapshot-991207


On Fri, Dec 10, 1999 at 01:00:42AM -0500, Chris Faylor wrote:
>>>   What shell are you using?
>>The shell is bash 2.02 from cygwin b20.1, copied to /bin/sh.exe.
>>>  
>>>   Does pwd actually
>>> have a value?
>>
>>What do you mean?
>>$(pwd) is a command in a sub-shell, not a variable.
>
>Doh.  That's right.  I've got make on the brain.
>
>>Shell built-in commands eg $(pwd) never work. 
>>External commands eg $(dirname /foo/bar) work most times, but hang maybe
>>1 time in 20.
>>A ^C brings back the prompt every time (but one).
>
>The hanging problem should be fixed.
>
>I think I know how to deal with this problem but it will have to wait
>until tomorrow.

I've checked in changes that seem to fix this.  It was an interesting
problem.  read() was setting the EINTR errno but it was getting
overwritten by a signal handler because I've changed the way signal
handlers are called now.  Although, actually, I would not be surprised
to hear that this cropped up with B20.1 one time in a thousand too.

So, now, in some situations, I save the errno for restoration when
a signal handler returns.

Lemme know if this works.  Before this patch, I got no output fairly
frequently.  Now I always get what I expect.

cgf

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