Home
last modified time | relevance | path

Searched refs:lockfile (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/openbmc/poky/scripts/
H A Dbblock71 def bblockDump(lockfile): argument
73 with open(lockfile, "r") as lockfile:
74 for line in lockfile:
81 def bblockReset(lockfile, pns, package_archs, tasks): argument
85 os.remove(lockfile)
90 tmp_lockfile = lockfile + ".tmp"
91 with open(lockfile, "r") as infile, open(tmp_lockfile, "w") as outfile:
101 os.remove(lockfile)
102 os.rename(tmp_lockfile, lockfile)
136 lockfile = "{builddir}/conf/bblock.conf".format(builddir=builddir)
[all …]
H A Drunqemu262 lockfile = os.path.join(lockdir, str(port) + '.lock')
263 if self.acquire_portlock(lockfile):
267 self.release_portlock(lockfile)
275 def acquire_portlock(self, lockfile): argument
276 logger.debug("Acquiring lockfile %s..." % lockfile)
278 portlock_descriptor = open(lockfile, 'w')
279 self.portlocks.update({lockfile: portlock_descriptor})
280 fcntl.flock(self.portlocks[lockfile], fcntl.LOCK_EX|fcntl.LOCK_NB)
282 msg = "Acquiring lockfile %s failed: %s" % (lockfile, e)
284 if lockfile in self.portlocks.keys() and self.portlocks[lockfile]:
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/liblockfile/liblockfile/
H A D0001-Makefile.in-redefine-LOCKPROG.patch33 lockfile.o: lockfile.c
36 -DSTATIC -c lockfile.c
38 solockfile.o: lockfile.c
41 -c lockfile.c -o solockfile.o
43 dlockfile.o: lockfile.c
46 -c lockfile.c -o dlockfile.o
H A Dconfigure.patch18 -AC_INIT(lockfile.c)
20 +AC_CONFIG_SRCDIR([lockfile.c])
H A D0001-Makefile.in-add-DESTDIR.patch18 | install -m 644 lockfile.h maillock.h /usr/include
19 | install: cannot create regular file '/usr/include/lockfile.h': Permission denied
H A D0001-Makefile.in-fix-install-failure-on-host-without-ldco.patch11 install -m 644 lockfile.h maillock.h /mnt/tmp-glibc/work/core2-64-wrs-linux/liblockfile/1.14-r0/ima…
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/openct/openct/
H A Dopenct.init31 lockfile=/var/lock/subsys/$prog
39 [ $retval -eq 0 ] && touch $lockfile
52 rm -f $lockfile
84 [ ! -f $lockfile ] || restart
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/postgresql/files/
H A Dpostgresql.init53 lockfile="/var/lock/subsys/${NAME}"
118 touch "$lockfile"
130 if [ -e "$lockfile" ]
138 rm -f "$lockfile"
156 [ -e "$lockfile" ] && restart || :
/openbmc/openbmc/meta-security/dynamic-layers/meta-python/recipes-security/fail2ban/files/
H A Dinitd30 lockfile=${LOCKFILE-/var/lock/subsys/fail2ban}
41 touch ${lockfile}
55 rm -f ${lockfile} ${pidfile}
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dbblock.py22 cls.lockfile = cls.builddir + "/conf/bblock.conf"
34 contents = ftools.read_file(self.lockfile)
46 self.assertExists(self.lockfile)
48 self.assertNotExists(self.lockfile)
57 self.assertExists(self.lockfile)
60 contents = ftools.read_file(self.lockfile)
/openbmc/openbmc/meta-arm/documentation/
H A Dcontinuous-integration-and-kas.md43 The lockfile.yml can be downloaded manually, but there's a script in meta-arm to fetch the lock fil…
46 $ ./ci/download-lockfile.py --help
47 usage: download-lockfile.py [-h] server project refspec
54 $ ./ci/download-lockfile.py https://gitlab.com/jonmason00/meta-arm master
55 Fetched lockfile.yml
56 Commit this lockfile.yml to the top-level of the meta-arm repository and the CI will use it automat…
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/lockfile-progs/
H A Dlockfile-progs_0.1.19.bb3 lockfile-progs provide a method to lock and unlock mailboxes and files \
5 HOMEPAGE = "http://packages.qa.debian.org/l/lockfile-progs.html"
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Drunqemu230 logger.debug("Acquiring lockfile %s..." % self.taplock)
235 msg = "Acquiring lockfile %s failed: %s" % (self.taplock, e)
248 logger.debug("Releasing lockfile for tap device '%s'" % self.tap)
262 lockfile = os.path.join(lockdir, str(port) + '.lock')
263 if self.acquire_portlock(lockfile):
267 self.release_portlock(lockfile)
275 def acquire_portlock(self, lockfile): argument
276 logger.debug("Acquiring lockfile %s..." % lockfile)
278 portlock_descriptor = open(lockfile, '
290 release_portlock(self, lockfile=None) global() argument
[all...]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dmain.py457 topdir, lock, lockfile = lockBitbake()
474 procs = bb.server.process.get_lockfile_process_msg(lockfile)
532 lockfile = topdir + "/bitbake.lock"
533 return topdir, bb.utils.lockfile(lockfile, False, False), lockfile
H A Dcache.py829 glf = bb.utils.lockfile(self.cachefile + ".lock")
868 glf = bb.utils.lockfile(self.cachefile + ".lock", shared=True)
873 lf = bb.utils.lockfile(self.cachefile + ".lock." + str(i), retry=False)
898 glf = bb.utils.lockfile(self.cachefile + ".lock")
953 glf = bb.utils.lockfile(self.cachefile + ".lock")
974 glf = bb.utils.lockfile(self.cachefile + ".lock")
986 glf = bb.utils.lockfile(self.cachefile + ".lock")
/openbmc/openbmc/poky/meta/classes/
H A Dreport-error.bbclass76 lock = bb.utils.lockfile(datafile + '.lock')
109 lock = bb.utils.lockfile(datafile + '.lock')
127 lock = bb.utils.lockfile(datafile + '.lock')
142 lock = bb.utils.lockfile(datafile + '.lock')
147 lock = bb.utils.lockfile(datafile + '.lock')
/openbmc/openbmc/poky/meta/classes-recipe/
H A Dcargo_common.bbclass174 lockfile = d.getVar("CARGO_LOCK_PATH")
175 if not os.path.exists(lockfile):
176 bb.fatal(f"{lockfile} file doesn't exist")
187 lockfile_orig = lockfile + ".orig"
189 shutil.copy(lockfile, lockfile_orig)
197 with open(lockfile, "w") as f:
/openbmc/openbmc/poky/bitbake/lib/bb/server/
H A Dprocess.py53 def get_lockfile_process_msg(lockfile): argument
57 procs = subprocess.check_output(["lsof", '-w', lockfile], stderr=subprocess.STDOUT)
67 procs = subprocess.check_output(["fuser", '-v', lockfile], stderr=subprocess.STDOUT)
376 lockfile = self.bitbake_lock_name
378 def get_lock_contents(lockfile): argument
380 with open(lockfile, "r") as f:
391 if not os.path.exists(os.path.basename(lockfile)):
396 lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=False)
398 newlockcontents = get_lock_contents(lockfile)
413 procs = get_lockfile_process_msg(lockfile)
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A D__init__.py1070 if ud.lockfile and ud.lockfile != origud.lockfile:
1071 lf = bb.utils.lockfile(ud.lockfile)
1154 if ud.lockfile and ud.lockfile != origud.lockfile:
1302 self.lockfile = None
1386 self.lockfile = basepath + '.lock'
1867 if ud.lockfile:
1868 lf = bb.utils.lockfile(ud.lockfile)
1955 if ud.lockfile:
2006 if ud.lockfile:
2007 lf = bb.utils.lockfile(ud.lockfile)
[all …]
H A Dnpmsw.py33 from bb.utils import lockfile
214 lf = lockfile(proxy_ud.lockfile)
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-daemon_3.1.2.bb7 python3-lockfile (>= 0.10) \
H A Dpython3-cachecontrol_0.14.3.bb14 python3-lockfile \
H A Dpython3-lockfile_0.12.2.bb5 HOMEPAGE = "https://pypi.org/project/lockfile/"
/openbmc/openbmc/meta-openembedded/meta-oe/classes/
H A Dscancode.bbclass13 lf = bb.utils.lockfile(d.getVar('SCANCODE_SRC_LOCATION') + ".lock")
/openbmc/openbmc/poky/meta/lib/oe/
H A Dnpm_registry.py119 self.__lockf = bb.utils.lockfile(self.__base + ".lock")

123