summaryrefslogtreecommitdiffstats
path: root/meta/classes/devshell.bbclass
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-07-05 01:08:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:23 +0100
commit250955ab8c9b67a43e9cb6dc1f837bbca5141705 (patch)
tree92f539e4bf0c59884d3fa3bcb76c96ea9e40d2fc /meta/classes/devshell.bbclass
parent16df2b6efa64b8c483c3241920fc884f26bd08c5 (diff)
downloadpoky-250955ab8c9b67a43e9cb6dc1f837bbca5141705.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' (From OE-Core rev: 875910451e1ce97d0c42b41b1140c8160ed1f40a) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/devshell.bbclass')
-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):
65 os.dup2(m, sys.stdout.fileno()) 65 os.dup2(m, sys.stdout.fileno())
66 os.dup2(m, sys.stderr.fileno()) 66 os.dup2(m, sys.stderr.fileno())
67 67
68 sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
69 sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0) 68 sys.stdin = os.fdopen(sys.stdin.fileno(), 'r', 0)
70 69
71 bb.utils.nonblockingfd(sys.stdout) 70 bb.utils.nonblockingfd(sys.stdout)