mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
![]() Mutex#synchronize will throw an error if called from code passed to Signal.trap. This makes it impossible to start a working Pry session inside a signal handler. Currently, calling binding.pry inside signal handling code raises an exception because Pry uses mutexes to solve various thread-safety issues. This commit updates Pry.start to detect whether we'll have the ability to use Mutex#synchronize. If not, we'll print an error message and return instead of raising an error. https://github.com/pry/pry/issues/2191 |
||
---|---|---|
.. | ||
pry | ||
pry.rb |