loop hanging

prz Guy.Przytula@riziv.fgov.be
Wed Jun 28 13:31:00 GMT 2006

I have a small program that executes a command and parses the output
I can see that on many executions the program hangs.
added some debug statements and could see it is at loop iteration that we
sample code 
db2 list db directory | {
	while read DBREC
    [[ ! -z $DEBUG  ]] && echo "p6"     
        [[ ! -z $DEBUG  ]] && echo "p5"         
the last output before hang is always p5
Any idea/hint why this is occuring ?
The executed command returns many lines.
Best Regards, Guy Przytula
View this message in context: http://www.nabble.com/loop-hanging-tf1861486.html#a5084194
Sent from the Cygwin Users forum at Nabble.com.

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/

More information about the Cygwin mailing list