summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-03 19:54:14 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-03 19:54:14 +0000
commit8a907d22c5e71ec2be78ad6a9103265caafb6e0c (patch)
tree0db015dab1d2a21cace62a044dcef941165e1afd
parentUse special members delete macro (diff)
downloadnetfs-8a907d22c5e71ec2be78ad6a9103265caafb6e0c.tar.bz2
netfs-8a907d22c5e71ec2be78ad6a9103265caafb6e0c.tar.xz
netfs-8a907d22c5e71ec2be78ad6a9103265caafb6e0c.zip
Don't create a big mess when multiple invocations of glacier occur
-rw-r--r--netfs/unittests/testGlacier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/unittests/testGlacier.cpp b/netfs/unittests/testGlacier.cpp
index 47782c5..5950e61 100644
--- a/netfs/unittests/testGlacier.cpp
+++ b/netfs/unittests/testGlacier.cpp
@@ -12,7 +12,7 @@ BOOST_AUTO_TEST_CASE(withRouter)
{
std::filesystem::remove(PID);
BOOST_REQUIRE_EQUAL(0,
- system("/usr/bin/glacier2router --Glacier2.Client.Endpoints='tcp -p 14063' "
+ system("flock /tmp/glacier.lock /usr/bin/glacier2router --Glacier2.Client.Endpoints='tcp -p 14063' "
"--Glacier2.PermissionsVerifier=Glacier2/NullPermissionsVerifier --daemon --pidfile " PID));
sleep(1);