summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSSetup/Engine.pm
diff options
context:
space:
mode:
authorOliver Tappe2008-09-13 00:00:46 +0200
committerOliver Tappe2008-09-13 00:00:46 +0200
commiteca5f2e81a7c859bfbd378b5f5cd7c7b5d4ba0b0 (patch)
tree555152e7baf8f0cc79dfb1f679af99737c183b5a /installer/OpenSLX/OSSetup/Engine.pm
parentadder version 3.71 of pxelinux-stuff (diff)
downloadcore-eca5f2e81a7c859bfbd378b5f5cd7c7b5d4ba0b0.tar.gz
core-eca5f2e81a7c859bfbd378b5f5cd7c7b5d4ba0b0.tar.xz
core-eca5f2e81a7c859bfbd378b5f5cd7c7b5d4ba0b0.zip
* implemented support for recursive file-based locks
* used improved locking mechanism to protect not only slxconfig-demuxer against being executed twice, but also to avoid two different process groups from chrooting into the same vendor-OS git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2213 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/OpenSLX/OSSetup/Engine.pm')
-rw-r--r--installer/OpenSLX/OSSetup/Engine.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/installer/OpenSLX/OSSetup/Engine.pm b/installer/OpenSLX/OSSetup/Engine.pm
index 2a4801ae..47ba9b3c 100644
--- a/installer/OpenSLX/OSSetup/Engine.pm
+++ b/installer/OpenSLX/OSSetup/Engine.pm
@@ -140,6 +140,9 @@ sub initialize
$distro->initialize($self);
$self->{distro} = $distro;
+ # protect against parallel executions of writing OpenSLX scripts
+ $self->{'vendor-os-lock'} = grabLock($vendorOSName);
+
if ($actionType =~ m{^(install|update|shell|plugin)}) {
# setup path to distribution-specific info:
my $sharedDistroInfoDir