summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2012-07-10 22:35:45 -0700
committerChip Salzenberg <chip@pobox.com>2012-07-10 22:37:14 -0700
commit6008229130183ac5d99c7ba4f4e05dfdb2734103 (patch)
tree185c8fb956092f1c78c08844c715664d39a0f7f6 /doio.c
parent2d7bc9fa6a3bfff96884720e23a819e1d269d0e0 (diff)
downloadperl-6008229130183ac5d99c7ba4f4e05dfdb2734103.tar.gz
hold pid in Pid_t, not I32, for kill()
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doio.c b/doio.c
index 8149172eab..5682426da9 100644
--- a/doio.c
+++ b/doio.c
@@ -1750,9 +1750,9 @@ nothing in the core.
}
#endif
while (++mark <= sp) {
- I32 proc;
+ Pid_t proc;
SvGETMAGIC(*mark);
- if (!(SvIOK(*mark) || SvNOK(*mark) || looks_like_number(*mark)))
+ if (!(SvNIOK(*mark) || looks_like_number(*mark)))
Perl_croak(aTHX_ "Can't kill a non-numeric process ID");
proc = SvIV_nomg(*mark);
if (killgp)