Imported Upstream version 1.5.1

This commit is contained in:
Mario Fetka
2020-09-22 02:25:22 +02:00
commit 434d6067d9
2103 changed files with 928962 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/bin/bash
touch testfile
(
flock -n -x 10
if [ $? -ne 0 ]
then
echo "could not acquire log!"
exit 1
fi
sleep 10
flock -u 10
) 10>testfile &
sleep 1
(
flock -n -x 11
if [ $? -ne 1 ]
then
echo "could acquire lock!"
exit 1
fi
) 11>testfile
if [ $? -ne 0 ]
then
echo "failed"
exit 1
fi
echo "locking works :)"
exit 0