develooper Front page | perl.perl5.porters | Postings from February 2014

[perl #121230] process group kill on Win32 broken in 5.17.2, regression 5.18

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
February 26, 2014 23:16
Subject:
[perl #121230] process group kill on Win32 broken in 5.17.2, regression 5.18
Message ID:
rt-4.0.18-31414-1393456585-567.121230-15-0@perl.org
On Wed Feb 26 06:04:15 2014, davem wrote:
> On Tue, Feb 25, 2014 at 05:10:33PM -0800, bulk88 via RT wrote:
> > While writing a test for this, I discovered another bug or issue in
> > Win32 PG kill. PG kill is supposed to return the number of processes
> > "signaled" (is this a synonym for "killed" on Win32 platform?) per
> > perldoc
> > ------------------------------------------------
> > Sends a signal to a list of processes. Returns the number of processes
> > successfully signaled (which is not necessarily the same as the number
> > actually killed).
> > -----------------------------------------------
> > 
> > My testing shows the retval in PP of PG kill in 5.12.2 is always 1. 
> 
> I think the perl docs are misleading. It's not supposed to indicate
> the total *processes* killed - UNIX certainly doesn't provide this info
> when killing groups - but rather the number of 'kills' in the list
> that were successful. i.e.
> 
>     kill $SIG, $proc1, $proc2, $no_such_process;
> 
> returns 2.
> 

Patch for POD.

-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=121230

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About