diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index b36ed6fe36..7b10f80680 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -125,6 +125,14 @@ class BBCooker: | |||
125 | self.lock = bb.utils.lockfile(lockfile, False, False) | 125 | self.lock = bb.utils.lockfile(lockfile, False, False) |
126 | if not self.lock: | 126 | if not self.lock: |
127 | bb.fatal("Only one copy of bitbake should be run against a build directory") | 127 | bb.fatal("Only one copy of bitbake should be run against a build directory") |
128 | try: | ||
129 | self.lock.seek(0) | ||
130 | self.lock.truncate() | ||
131 | if len(configuration.interface) >= 2: | ||
132 | self.lock.write("%s:%s\n" % (configuration.interface[0], configuration.interface[1])); | ||
133 | self.lock.flush() | ||
134 | except: | ||
135 | pass | ||
128 | 136 | ||
129 | # TOSTOP must not be set or our children will hang when they output | 137 | # TOSTOP must not be set or our children will hang when they output |
130 | fd = sys.stdout.fileno() | 138 | fd = sys.stdout.fileno() |