* @brief Header file for plugin util
*/
+#include <unistd.h>
#include "plugin_utils.h"
#include <dpl/exception.h>
#include <dpl/log/log.h>
static int s_plugin_install_lock_fd = -1;
-bool lockPluginInstallation()
+bool lockPluginInstallation(bool isPreload)
{
+ if (isPreload) {
+ fprintf(stderr, "Skip create lock file.. \n");
+ return true;
+ }
+
int ret = 0;
LogInfo("Try to lock for plugins installation.");
return true;
}
-bool unlockPluginInstallation()
+bool unlockPluginInstallation(bool isPreload)
{
LogInfo("Unlock for plugins installation.");
+ if (isPreload) {
+ fprintf(stderr, "Skip plugin unlock.. \n");
+ return true;
+ }
if (s_plugin_install_lock_fd != -1) {
int ret = 0;