Skip to content

Commit

Permalink
Revert "Workaround ruby/prism#2289"
Browse files Browse the repository at this point in the history
This reverts commit 6769f95.
  • Loading branch information
eregon committed Jan 30, 2024
1 parent c87fe8f commit 2f16599
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/mri/tests/ruby/test_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1823,12 +1823,7 @@ def test_system_sigpipe
end
end
ensure
# 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
Process.kill(:KILL, pid) if (pid != 0) rescue false
end

if Process.respond_to?(:daemon)
Expand Down

0 comments on commit 2f16599

Please sign in to comment.