summaryrefslogtreecommitdiffstats
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:25:48 +0100
commit11ca5f99a7202878d27cbe31ed0012bd20891b83 (patch)
treead3bcf3bc7d49c69e387349eb1a642b142feac07
parentcd0afe151c7997be9cbdbd4af53093aba64f359d (diff)
downloadpoky-11ca5f99a7202878d27cbe31ed0012bd20891b83.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: 90a12e07ee22df900fa740c6c2f1efe41e93b9f4) 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>
-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)