From 9d63e5d420896fc68534bfe8b472a9a5463c9714 Mon Sep 17 00:00:00 2001 From: Rick Warner Date: Tue, 3 Jun 2008 09:59:54 +0300 Subject: [PATCH] Removing the unnecessary flocks from the installer. Signed-off-by: Rick Warner --- install.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.pl b/install.pl index 34a13d0..54ee31f 100755 --- a/install.pl +++ b/install.pl @@ -2037,11 +2037,11 @@ sub select_packages } print CONFIG "prefix=$prefix\n"; } + flock CONFIG, $UNLOCK; } else { if ($config_given) { open(CONFIG, "$config") || die "Can't open $config: $!";; - flock CONFIG, $LOCK_EXCLUSIVE; while() { next if (m@^\s+$|^#.*@); my ($package,$selected) = (split '=', $_); @@ -2262,8 +2262,8 @@ sub select_packages check_open_iscsi(); push (@selected_by_user, "open-iscsi-generic"); } + flock CONFIG, $UNLOCK; } - flock CONFIG, $UNLOCK; close(CONFIG); -- 2.41.0