diff options
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-worker | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index 3390f637e3..f053382f50 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -18,7 +18,7 @@ if len(sys.argv) != 2 or not sys.argv[1].startswith("decafbad"): | |||
18 | sys.exit(1) | 18 | sys.exit(1) |
19 | 19 | ||
20 | profiling = False | 20 | profiling = False |
21 | if sys.argv[1] == "decafbadbad": | 21 | if sys.argv[1].startswith("decafbadbad"): |
22 | profiling = True | 22 | profiling = True |
23 | try: | 23 | try: |
24 | import cProfile as profile | 24 | import cProfile as profile |
@@ -202,6 +202,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, taskdepdat | |||
202 | the_data = bb.cache.Cache.loadDataFull(fn, appends, data) | 202 | the_data = bb.cache.Cache.loadDataFull(fn, appends, data) |
203 | the_data.setVar('BB_TASKHASH', workerdata["runq_hash"][task]) | 203 | the_data.setVar('BB_TASKHASH', workerdata["runq_hash"][task]) |
204 | 204 | ||
205 | bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN", True), taskname.replace("do_", ""))) | ||
206 | |||
205 | # exported_vars() returns a generator which *cannot* be passed to os.environ.update() | 207 | # exported_vars() returns a generator which *cannot* be passed to os.environ.update() |
206 | # successfully. We also need to unset anything from the environment which shouldn't be there | 208 | # successfully. We also need to unset anything from the environment which shouldn't be there |
207 | exports = bb.data.exported_vars(the_data) | 209 | exports = bb.data.exported_vars(the_data) |
@@ -296,6 +298,10 @@ class BitbakeWorker(object): | |||
296 | signal.signal(signal.SIGTERM, self.sigterm_exception) | 298 | signal.signal(signal.SIGTERM, self.sigterm_exception) |
297 | # Let SIGHUP exit as SIGTERM | 299 | # Let SIGHUP exit as SIGTERM |
298 | signal.signal(signal.SIGHUP, self.sigterm_exception) | 300 | signal.signal(signal.SIGHUP, self.sigterm_exception) |
301 | if "beef" in sys.argv[1]: | ||
302 | bb.utils.set_process_name("Worker (Fakeroot)") | ||
303 | else: | ||
304 | bb.utils.set_process_name("Worker") | ||
299 | 305 | ||
300 | def sigterm_exception(self, signum, stackframe): | 306 | def sigterm_exception(self, signum, stackframe): |
301 | if signum == signal.SIGTERM: | 307 | if signum == signal.SIGTERM: |