Issue #7082 has been updated by usa (Usaku NAKAMURA).

Tracker changed from Bug to Feature


----------------------------------------
Feature #7082: Process.kill 0 in windows can return spurious success
https://bugs.ruby-lang.org/issues/7082#change-29771

Author: rogerdpack (Roger Pack)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


>> a = IO.popen('ls "."', 'w')
=> #<IO:fd 4>
>> a.pid
=> 2104
>> Process.kill 0, 2104
=> 1 # should raise an exception since that process is dead now, shouldn't it? [it can be checked with GetExitCodeProcess != STILL_ACTIVE) ?

Thanks!
-r


-- 
http://bugs.ruby-lang.org/