From 63f69564e4341f81840890473fec1ccdabf784f8 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 18 Jan 2011 10:27:17 +0000 Subject: [PATCH 1/1] 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 --- tools/sg_unit_extractor.pl | 7 ------- 1 file changed, 7 deletions(-) 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 -- 2.20.1