diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-07-05 01:08:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:55:39 +0100 |
commit | 875910451e1ce97d0c42b41b1140c8160ed1f40a (patch) | |
tree | 0f494d779ea57ce0e80d9d5f72597979f4498a80 /meta/classes/devshell.bbclass | |
parent | 66cda3c6a281fd06e787ddbeb03f4796aae0feb8 (diff) | |
download | openembedded-core-875910451e1ce97d0c42b41b1140c8160ed1f40a.tar.gz openembedded-core-875910451e1ce97d0c42b41b1140c8160ed1f40a.tar.bz2 openembedded-core-875910451e1ce97d0c42b41b1140c8160ed1f40a.zip |
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: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/devshell.bbclass')
-rw-r--r-- | meta/classes/devshell.bbclass | 1 |
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) |