Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't use lock file to protect against parallel invocation anymore
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 18 Jan 2011 10:27:17 +0000 (10:27 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 18 Jan 2011 10:27:17 +0000 (10:27 +0000)
Makefiles were changed a while ago to avoid parallel invocation at the
source, and this protections are useless and dangerous on some broken
NFS, for example.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9427 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/sg_unit_extractor.pl

index 657b6a9..1c62859 100755 (executable)
@@ -1,17 +1,10 @@
 #! /usr/bin/perl
 
 use strict;
 #! /usr/bin/perl
 
 use strict;
-use Fcntl ':flock';
 
 use strict;
 use Getopt::Long qw(GetOptions);
 
 
 use strict;
 use Getopt::Long qw(GetOptions);
 
-open SELF, "< $0" or die "Cannot open the lock file";
-if (!flock SELF, LOCK_EX | LOCK_NB) {
-    print STDERR "sg_unit_extractor already running. Cancelling...\n";
-    exit;
-}
-
 my $progname="sg_unit_extractor";
 # Get the args 
 
 my $progname="sg_unit_extractor";
 # Get the args