Changeset 1582

Show
Ignore:
Timestamp:
08/24/06 05:12:56
Author:
miyagawa
Message:

remove lockdir if we were able to mkdir ... even svn is down or something

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/tools/chimps-smoker.pl

    r1575 r1582  
    99our $lockdir = "$ENV{HOME}/.plagger-smoke.lock"; 
    1010mkdir $lockdir, 0777 or die "Other process is running!\n"; 
     11our $run  = 1; 
    1112 
    1213our $repo = "http://svn.bulknews.net/repos/plagger"; 
     
    2930YAML::DumpFile($file, $config) if $run; 
    3031 
    31 rmdir $lockdir if -e $lockdir
     32END { rmdir $lockdir if $run && -e $lockdir }
    3233 
    3334sub run_chimps {