From: Ed Bartosh Date: Mon, 4 Jul 2016 22:08:13 +0000 (+0300) Subject: devshell.bbclass: fix double unbuffering X-Git-Tag: uninative-1.3~446 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=875910451e1ce97d0c42b41b1140c8160ed1f40a;p=openembedded-core.git 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 pty = open(sys.argv[1], "w+b", 0) IOError: [Errno 13] Permission denied: '/dev/pts/6' Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- 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)