[oe-commits] [bitbake] branch master-next updated: bitbake-layers: add signal hander to avoid exception

git at git.openembedded.org git at git.openembedded.org
Wed Apr 12 18:35:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

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

The following commit(s) were added to refs/heads/master-next by this push:
     new 4fca9a0  bitbake-layers: add signal hander to avoid exception
4fca9a0 is described below

commit 4fca9a07f2d6b0544977112672b786982d7bb8f2
Author: Zhixiong Chi <zhixiong.chi at windriver.com>
AuthorDate: Wed Apr 12 11:29:17 2017 +0800

    bitbake-layers: add signal hander to avoid exception
    
    Fixed:
    bitbake-layers show-recipes | less
    press "q" to exit
    
    There will be a Broken pipe error output as follows:
    "BrokenPipeError: [Errno 32] Broken pipe"
    
    Signed-off-by: Zhixiong Chi <zhixiong.chi at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 bin/bitbake-layers | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 390ad05..2b05d28 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -24,6 +24,7 @@ import logging
 import os
 import sys
 import argparse
+import signal
 
 bindir = os.path.dirname(__file__)
 topdir = os.path.dirname(bindir)
@@ -35,6 +36,7 @@ import bb.msg
 logger = bb.msg.logger_create('bitbake-layers', sys.stdout)
 
 def main():
+    signal.signal(signal.SIGPIPE, signal.SIG_DFL)
     parser = argparse.ArgumentParser(
         description="BitBake layers utility",
         epilog="Use %(prog)s <subcommand> --help to get help on a specific command",

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


More information about the Openembedded-commits mailing list