[oe-commits] [openembedded-core] 12/40: devshell.bbclass: fix double unbuffering

git at git.openembedded.org git at git.openembedded.org
Thu Jul 7 12:39:03 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3ed7cbf57b80a6a9b4c7f102e58116a4f67feed0
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Tue Jul 5 01:08:13 2016 +0300

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/devshell.bbclass | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 341d9c0..041ed15 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list