[perl #121230] fix kill -SIG on win32
authorDavid Mitchell <davem@iabyn.com>
Sun, 23 Feb 2014 13:25:05 +0000 (13:25 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 28 Feb 2014 13:55:56 +0000 (13:55 +0000)
commit111f73b5d79a652d1b6c6e3df3c6cd4c14c17ea7
treeea2bdb9c5f80d8f2f365cc5bac5492d2a1aa4f44
parent3d147ac29d12abdb2ed2e2bc6a5c0963319ea7b1
[perl #121230] fix kill -SIG on win32

v5.17.1-137-gc2fd40c tidied up perl's kill() implementation, making
-SIGNAME be handled correctly, It also eliminated the use of the killpg()
system/library call, which these days is usually just a thin wrapper over
kill(). By doing this, it assumed that the following are functionally
equivalent:

 killpg(pgrp, sig)
 kill(-pgrp, sig).

Unfortunately this broke Window's use of the (perl-level)

    kill negative_value, pid, ...

since under Windows, the killpg()/kill() identity doesn't hold
(win32_kill() uses negative ids for fake-PIds, not process groups).

Fix this by restoring the use of killpg() where available.
doio.c