]> git.openfabrics.org - ~aditr/ofed_scripts.git/commitdiff
Removing the unnecessary flocks from the installer.
authorRick Warner <rick@microway.com>
Tue, 3 Jun 2008 06:59:54 +0000 (09:59 +0300)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 3 Jun 2008 06:59:54 +0000 (09:59 +0300)
Signed-off-by: Rick Warner <rick@microway.com>
install.pl

index 34a13d09e9f41e7c135b4c18491aa52eb8b01605..54ee31f1090a255e1477657fa23ad638af969bfd 100755 (executable)
@@ -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(<CONFIG>) {
                 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);