Skip to contentSkip to conversation

devshell.bbclass: fix double unbuffering

PATCH New Ed Bartosh 1 participant 1 message Jul 4, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 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'

---
 meta/classes/devshell.bbclass | 1 -
 1 file changed, 1 deletion(-)
meta/classes/devshell.bbclass +0 -1
index 4451436..72390dd 100644
@@ -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)
Signature · 1 line
2.1.4