Class: Bosh::Director::ForkedProcess
- Defined in:
- lib/bosh/director/jobs/db_job.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/bosh/director/jobs/db_job.rb', line 73 def self.run pid = Process.fork do EM.run do EM.defer do begin yield ensure EM.stop end end end end Process.waitpid(pid) $? end |