Method: Rush::Connection::Local#process_alive

Defined in:
lib/rush/local.rb

#process_alive(pid) ⇒ Object

Returns true if the specified pid is running.



278
279
280
281
282
283
# File 'lib/rush/local.rb', line 278

def process_alive(pid)
	::Process.kill(0, pid)
	true
rescue Errno::ESRCH
	false
end