Skip to content

Commit 6769f95

Browse files
eregonandrykonchin
authored andcommitted
Workaround ruby/prism#2289
1 parent a6dc1e0 commit 6769f95

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/mri/tests/ruby/test_process.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,12 @@ def test_system_sigpipe
18231823
end
18241824
end
18251825
ensure
1826-
Process.kill(:KILL, pid) if (pid != 0) rescue false
1826+
# https://github.com/ruby/prism/issues/2289
1827+
# Process.kill(:KILL, pid) if (pid != 0) rescue false
1828+
begin
1829+
Process.kill(:KILL, pid) if (pid != 0)
1830+
rescue Errno::ESRCH
1831+
end
18271832
end
18281833

18291834
if Process.respond_to?(:daemon)

0 commit comments

Comments
 (0)