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

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

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
February 26, 2014 14:04
Subject:
Re: [perl #121230] process group kill on Win32 broken in 5.17.2,regression 5.18
Message ID:
20140226140345.GY1615@iabyn.com
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.

-- 
"But Sidley Park is already a picture, and a most amiable picture too.
The slopes are green and gentle. The trees are companionably grouped at
intervals that show them to advantage. The rill is a serpentine ribbon
unwound from the lake peaceably contained by meadows on which the right
amount of sheep are tastefully arranged." -- Lady Croom, "Arcadia"

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