Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com To: cygwin AT sourceware DOT cygnus DOT com Subject: Perl backtick childprocs hang after completion From: dkarr AT tcsi DOT com (David M. Karr) Date: 18 Jan 2001 16:57:02 -0800 Message-ID: Lines: 34 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I'm seeing a weird symptom with the child process belonging to a backtick command in Cygwin Perl. I wrote a little Perl script that just takes a command line to run, captures the output, and replaces "\\" with "/". The vast majority of the time, it seems to work fine. However, either because of the command I'm wrapping ("cleartool lsvt -a dirname"), or the directory I'm running it in, or something about the output it produces, it will sometimes just "hang" after calling the child process. I accidently discovered that if I use Task Manager to manually kill the child process, then the backtick finishes, and the captured output is exactly what it's supposed to be. So it appears that all the output was produced, but it somehow hung trying to end the child process. When I run this on a set of directories, it always hangs on the same ones. I looked at the output which is produced by each directory in the list I'm trying, and the ones that are failing represent the ones with the most number of lines of output, although they only range from 36-197 lines. However, there is one other that produces 36 lines of output, and that one does NOT fail. I tried storing the lines of output that "hang" into a file and changing the backticked command to "cat thefile", and doesn't hang. I'm quite confused. What could be going on here? -- =================================================================== David M. Karr ; w:(425)487-8312 ; TCSI & Best Consulting dkarr AT tcsi DOT com ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple