lib/rexec/daemon/base.rb in rexec-1.6.1 vs lib/rexec/daemon/base.rb in rexec-1.6.2
- old
+ new
@@ -151,9 +151,11 @@
def self.run
end
# The main function to stop the daemon
def self.shutdown
+ # Interrupt all children processes, preferably to stop them so that they are not left behind.
+ Process.kill(0, :INT)
end
end
end
end