Method: CodeSync::Manager.cleanup_stale_processes
- Defined in:
- lib/code_sync/manager.rb
.cleanup_stale_processes ⇒ Object
FIXME: You know this aint right
38 39 40 41 42 43 44 45 46 |
# File 'lib/code_sync/manager.rb', line 38 def self.cleanup_stale_processes PTY.spawn("ps aux |grep 'codesyn[c]'") do |stdin,stdout,pid| stdin.each do |output| if pid = output.split[1] `kill -9 #{ pid }` end end end end |