This commit is contained in:
Ward Wouts 2005-02-01 09:38:22 +00:00
parent 1a1ed818f4
commit 68c9c264d6

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.91 2005/01/30 18:43:17 ward Exp $ # $Dwarf: ripnews.rb,v 1.92 2005/02/01 09:33:56 ward Exp $
# $Source$ # $Source$
# #
@ -320,7 +320,7 @@ def lock
if pid if pid
pid.chomp! pid.chomp!
begin begin
Process.kill(0, pid) Process.kill(0, pid.to_i)
print "Already running, exiting...\n" print "Already running, exiting...\n"
exit exit
rescue Errno::ESRCH rescue Errno::ESRCH