[DRE-commits] [ruby-aruba] 32/74: Set last command stopped and exit code, when a command is terminated

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit a0e2f9e6f85ec9e887745cade5a4b9c19c484a11
Author: Max Meyer <dev at fedux.org>
Date:   Tue Nov 24 17:10:00 2015 +0100

    Set last command stopped and exit code, when a command is terminated
---
 lib/aruba/process_monitor.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/aruba/process_monitor.rb b/lib/aruba/process_monitor.rb
index a5809b4..9a2c3da 100644
--- a/lib/aruba/process_monitor.rb
+++ b/lib/aruba/process_monitor.rb
@@ -60,7 +60,8 @@ module Aruba
     end
 
     def terminate_process!(process)
-      process.terminate
+      @last_command_stopped = process
+      @last_exit_status     = process.terminate
     end
 
     def stop_processes!

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git



More information about the Pkg-ruby-extras-commits mailing list