X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4C0C7BCE.6060703@12000.org> Date: Sun, 06 Jun 2010 21:55:42 -0700 From: "Nasser M. Abbasi" Reply-To: nma AT 12000 DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygwin 1.7.5, perl *** fatal error TP_NUM_W_BUFS too smal References: <20100603004331 DOT eehneofq8kos4ccw AT webmail DOT 12000 DOT org> <4C07FC62 DOT 90207 AT 12000 DOT org> <20100604083653 DOT GA6401 AT calimero DOT vinschen DOT de> <4C08CAE9 DOT 2000507 AT 12000 DOT org> <4C08D2B8 DOT 8090609 AT 12000 DOT org> <4C0C685A DOT 1010803 AT x-ray DOT at> In-Reply-To: <4C0C685A.1010803@x-ray.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 6/6/2010 8:32 PM, Reini Urban wrote: >> ========= >> >> 262: my ($self,$cmd,$in,$out,$err) = @_; >> 263: carp qq{Debug (syswait): Running "$cmd"\n} if($Verbose); >> 265: my $status; >> 266: my $child_pid; >> 267: if ($child_pid = fork) { > > You can try to add a small sleep here after line 267, the fork. > sleep(0.2); > >> 268: $status = waitpid($child_pid, 0); >> ######### Forked, but do not know how to create a new TTY. ######### Hello; I added the sleep above, made no difference: (also tried with sleep(.5), same, the error still there: ==================================== entering L2hos::Unix::syswait 262: my ($self,$cmd,$in,$out,$err) = @_; 263: carp qq{Debug (syswait): Running "$cmd"\n} if($Verbose); 265: my $status; 266: my $child_pid; 267: if ($child_pid = fork) { 268: sleep(0.2); 269: $status = waitpid($child_pid, 0); ######### Forked, but do not know how to create a new TTY. ######### Since two debuggers fight for the same TTY, input is severely entangled. I know how to switch the output to a different window in xterms, OS/2 consoles, and Mac OS X Terminal.app only. For a manual switch, put the name of the created TTY in $DB::fork_TTY, or define a function DB::get_fork_TTY() returning this. On UNIX-like systems one can get the name of a TTY for the given window by typing tty, and disconnect the shell from TTY by sleep 1000000. 275: unless(exec($cmd)) { 0 [main] perl 4796 C:\cygwin\bin\perl.exe: *** fatal error - Internal error: TP_NUM_W_BUFS too small. 270: carp "Debug (syswait): Finished child process: #$child_pid\n" 271: if($Verbose); 272: $child_pid = 0; 273: return($?); exited L2hos::Unix::syswait ================== --Nasser -- 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