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