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: Reproducer for TCSH hangs


On Feb  3 11:39, Stewart Brown wrote:
> 
> The following shell script demonstrates a problem
> that results in hanging scripts with CYGWIN 1.7.7:
> 
> #!/bin/csh -f
> 
> unalias *
> set path = ( /usr/bin /usr/sbin /bin /sbin )
> 
> @ i = 0
> while (1)
> 
> # uncomment this and the iteration will proceed
> # in 10 second increments
> #   ( sleep 10 ; cat /proc/*/cmdline >& /dev/null ) &
> 
>    @ i = $i + 1
>    echo -n "$i "
>    set foo = `echo "a" | cat | cat`
>    echo "ok"
> end
> 
> exit($status)
> 
> 
> If this is run on our system it will hang most times
> on the first iteration and certainly within 4 or 5 iterations.

Not for me.  I tested this script on two machines, one with XP,
one with Windows 7.  On both machines I tried with Cygwin 1.7.7
as well as with the latest developer snapshot, to no avail.  I even
tried two different tcsh versions, the one from the distro and the
latest from CVS.  Your script works fine for me.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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


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