lib/frontkick/command.rb in frontkick-0.3.2 vs lib/frontkick/command.rb in frontkick-0.3.3
- old
+ new
@@ -34,10 +34,10 @@
err.close if err and !err.closed?
wait_thr.kill if wait_thr and !wait_thr.stop?
lock_fd.flock(File::LOCK_UN) if lock_fd
end
- CommandResult.new(:stdout => stdout, :stderr => stderr, :exit_code => exit_code, :duration => duration)
+ Result.new(:stdout => stdout, :stderr => stderr, :exit_code => exit_code, :duration => duration)
end
def self.process_wait(pid)
begin
pid, status = Process.waitpid2(pid) # wait child processes finish