aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-07-04 22:00:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-06 17:24:49 +0100
commit90a12e07ee22df900fa740c6c2f1efe41e93b9f4 (patch)
tree08d1f913b2ea65134327dbea5ef85ca955ddcf32 /meta/classes
parent08f85da10b3a7fc6165f163fd0f23784a2c9c8e4 (diff)
downloadopenembedded-core-90a12e07ee22df900fa740c6c2f1efe41e93b9f4.tar.gz
devshell.bbclass: fix double unbuffering
stdout is already unbuffered in bitbake code. Attempt to do it again in devshell.bbclass causes this crash when running devpyshell: File "scripts/oepydevshell-internal.py", line 29, in <module> pty = open(sys.argv[1], "w+b", 0) IOError: [Errno 13] Permission denied: '/dev/pts/6' Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/devshell.bbclass1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 341d9c0002..041ed15d46 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -65,7 +65,6 @@ def devpyshell(d):
os.dup2(m, sys.stdout.fileno())
os.dup2(m, sys.stderr.fileno())
- sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0)
bb.utils.nonblockingfd(sys.stdout)