Project

General

Profile

Actions

Feature #7082

open

Process.kill 0 in windows can return spurious success

Added by rogerdpack (Roger Pack) over 11 years ago. Updated over 6 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:47719]

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0