Skip to content

Commit

Permalink
Workaround ruby/prism#2289
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 29, 2024
1 parent 99e4059 commit a843a82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/mri/tests/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,12 @@ def test_system_sigpipe
end
end
ensure
Process.kill(:KILL, pid) if (pid != 0) rescue false
# https://github.com/ruby/prism/issues/2289
# Process.kill(:KILL, pid) if (pid != 0) rescue false
begin
Process.kill(:KILL, pid) if (pid != 0)
rescue Errno::ESRCH
end
end

if Process.respond_to?(:daemon)
Expand Down

0 comments on commit a843a82

Please sign in to comment.