bin/check_running.rb in knjappserver-0.0.15 vs bin/check_running.rb in knjappserver-0.0.16

- old
+ new

@@ -56,11 +56,11 @@ tmpdir = "#{Dir.tmpdir}/knjappserver" tmppath = "#{tmpdir}/run_#{options[:title]}" count = 0 if File.exists?(tmppath) - pid = File.read(tmppath) - count = Knj::Unix_proc.list("pids" => [pid]).length + pid = File.read(tmppath).to_s.strip + count = Knj::Unix_proc.list("pids" => [pid]).length if pid.to_s.length > 0 end exit if count > 0 if options[:forking] \ No newline at end of file