Project

General

Profile

« Previous | Next » 

Revision 705b1bde

Added by haines (Andrew Haines) almost 4 years ago

[rubygems/rubygems] Fix interrupt handling in Bundler workers

The existing interrupt handling using SharedHelpers.trap fails when the previous
handler for a signal is not callable (for example, when it is the string "DEFAULT").

Instead, we now handle interrupts by aborting the process when worker threads are
running, and restore the previous handler after worker threads are finished.

Fixes #4764.

https://github.com/rubygems/rubygems/commit/b9f455d487