10 if ($^O eq 'riscos') {
11 skip_all("kill() not implemented on this platform");
19 ok( kill(0, $$), 'kill(0, $pid) returns true if $pid exists' );
21 # It's not easy to come up with an individual PID that is known not to exist,
22 # so just check that at least some PIDs in a large range are reported not to
26 for my $pid (1 .. $total) {
27 ++$count if kill(0, $pid);
29 # It is highly unlikely that all of the above PIDs are genuinely in use,
30 # so $count should be less than $total.
31 ok( $count < $total, 'kill(0, $pid) returns false if $pid does not exist' );