# File lib/selenium/webdriver/common/platform.rb, line 120 def exit_hook(&blk) pid = Process.pid at_exit do yield if Process.pid == pid end end