# File lib/guard.rb, line 359 def within_preserved_state(restart_interactor = true) lock.synchronize do begin interactor.stop if interactor @result = yield rescue Interrupt # Bring back Pry when the block is halted with Ctrl-C end interactor.start if interactor && restart_interactor end @result end