lib/knj/unix_proc.rb in knjrbfw-0.0.32 vs lib/knj/unix_proc.rb in knjrbfw-0.0.33

- old
+ new

@@ -1,20 +1,20 @@ -require "#{$knjpath}wref" +require "wref" #This class handels various stuff regarding Unix-processes. class Knj::Unix_proc attr_reader :data - PROCS = Knj::Wref_map.new + PROCS = Wref_map.new MUTEX = Mutex.new def self.spawn(data) pid = data["pid"].to_i begin proc_ele = PROCS[pid] proc_ele.update_data(data) - rescue Knj::Wref::Recycled + rescue Wref::Recycled proc_ele = Knj::Unix_proc.new(data) PROCS[pid] = proc_ele end return proc_ele \ No newline at end of file