Method: PerfectQueue::Engine#replace
- Defined in:
- lib/perfectqueue/engine.rb
#replace(immediate, command = [$0]+ARGV) ⇒ Object
106 107 108 109 110 111 112 113 114 |
# File 'lib/perfectqueue/engine.rb', line 106 def replace(immediate, command=[$0]+ARGV) return if @replaced_pid stop(immediate) @replaced_pid = Process.fork do exec(*command) exit!(127) end self end |