You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/gvmd/files/gvmd-8.0.1-tmplock.patch

35 lines
746 B

--- a/tools/greenbone-certdata-sync.in 2019-07-17 17:11:52.000000000 +0300
+++ b/tools/greenbone-certdata-sync.in 2019-07-22 21:11:36.173099530 +0300
@@ -494,13 +494,11 @@
fi
(
flock -n 9
- date > $LOCK_FILE
if [ $? -eq 1 ] ; then
log_notice "Sync in progress, exiting."
exit 1
fi
sync_certdata
- echo -n > $LOCK_FILE
-) 9>$LOCK_FILE
+)
exit 0
--- a/tools/greenbone-scapdata-sync.in 2019-07-17 17:11:52.000000000 +0300
+++ b/tools/greenbone-scapdata-sync.in 2019-07-22 21:12:49.193161531 +0300
@@ -517,13 +517,11 @@
fi
(
flock -n 9
- date > $LOCK_FILE
if [ $? -eq 1 ] ; then
log_notice "Sync in progress, exiting."
exit 1
fi
sync_scapdata
- echo -n > $LOCK_FILE
-) 9>$LOCK_FILE
+)
exit 0