1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib
Barrett Ingram d6f3183875
Return with an error message if pry is started inside signal handler (#2206)
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
2021-07-03 15:55:57 +03:00
..
pry Return with an error message if pry is started inside signal handler (#2206) 2021-07-03 15:55:57 +03:00
pry.rb Remove plugin system in favor of regular requires 2020-03-22 13:02:21 +01:00