suf
This commit is contained in:
parent
1a1ed818f4
commit
68c9c264d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue