summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-18 14:06:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-24 21:59:44 +0000
commit18d2c489f065f2eabe4024f2db3a1d6e0ca573c0 (patch)
treeda01a0955f9e4e0c2dc4cae540611a204a97d6f1 /bitbake/lib/bb/server
parent316d66b4c43a2338609ca6c1c51afb0970a41c8e (diff)
downloadpoky-18d2c489f065f2eabe4024f2db3a1d6e0ca573c0.tar.gz
bitbake: server/process: Fix lockfile contents check bug
We need to check against the first line of the file, fix the typo. (Bitbake rev: 4abc598fb01d426394f4222dfc752e620a8e1b7b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index 8d12f00bd4..916ee0a0e5 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -375,7 +375,7 @@ class ProcessServer():
375 lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=False) 375 lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=False)
376 if not lock: 376 if not lock:
377 newlockcontents = get_lock_contents(lockfile) 377 newlockcontents = get_lock_contents(lockfile)
378 if not newlockcontents.startswith([os.getpid() + "\n", os.getpid() + " "]): 378 if not newlockcontents[0].startswith([os.getpid() + "\n", os.getpid() + " "]):
379 # A new server was started, the lockfile contents changed, we can exit 379 # A new server was started, the lockfile contents changed, we can exit
380 serverlog("Lockfile now contains different contents, exiting: " + str(newlockcontents)) 380 serverlog("Lockfile now contains different contents, exiting: " + str(newlockcontents))
381 return 381 return