Skip to content

Commit

Permalink
Workaround ruby/prism#2289
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon authored and andrykonchin committed Jan 30, 2024
1 parent a6dc1e0 commit 6769f95
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 6769f95

Please sign in to comment.