4 class ProcessExits < EventCondition
7 valid &= complain("You must specify the 'pid_file' attribute on the Watch for :process_exits") if self.watch.pid_file.nil?
12 pid = File.read(self.watch.pid_file).strip.to_i
14 EventHandler.register(pid, :proc_exit) do
20 pid = File.read(self.watch.pid_file).strip.to_i
21 EventHandler.deregister(pid, :proc_exit)