summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-worker
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-xbitbake/bin/bitbake-worker7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index 3aaf3c2444..063cf37926 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -262,8 +262,11 @@ def fork_off_task(cfg, data, databuilder, workerdata, fn, task, taskname, taskha
262 bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) 262 bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", "")))
263 263
264 if not the_data.getVarFlag(taskname, 'network', False): 264 if not the_data.getVarFlag(taskname, 'network', False):
265 logger.debug("Attempting to disable network") 265 if bb.utils.is_local_uid(uid):
266 bb.utils.disable_network(uid, gid) 266 logger.debug("Attempting to disable network for %s" % taskname)
267 bb.utils.disable_network(uid, gid)
268 else:
269 logger.debug("Skipping disable network for %s since %s is not a local uid." % (taskname, uid))
267 270
268 # exported_vars() returns a generator which *cannot* be passed to os.environ.update() 271 # exported_vars() returns a generator which *cannot* be passed to os.environ.update()
269 # successfully. We also need to unset anything from the environment which shouldn't be there 272 # successfully. We also need to unset anything from the environment which shouldn't be there