From: mquinson Date: Tue, 18 Jan 2011 10:27:17 +0000 (+0000) Subject: don't use lock file to protect against parallel invocation anymore X-Git-Tag: v3.6_beta2~501 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/63f69564e4341f81840890473fec1ccdabf784f8?hp=b880a837535ef519b9764936da2900b4b2a17e18;ds=inline don't use lock file to protect against parallel invocation anymore 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 --- diff --git a/tools/sg_unit_extractor.pl b/tools/sg_unit_extractor.pl index 657b6a966e..1c6285997c 100755 --- a/tools/sg_unit_extractor.pl +++ b/tools/sg_unit_extractor.pl @@ -1,17 +1,10 @@ #! /usr/bin/perl use strict; -use Fcntl ':flock'; 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