]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
ui/knotty.py: Fix signal handling of SIGWINCH in BBProgress
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 6 Oct 2016 21:52:07 +0000 (16:52 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Oct 2016 21:54:38 +0000 (22:54 +0100)
commit812bd49cb569379ee90d5be28a4b6e60645f1e54
treed0109082c56334fb641427da3b98eefc22bf7ac6
parent80f377ebcffd01dbe393ccffb999df4b04552f8a
ui/knotty.py: Fix signal handling of SIGWINCH in BBProgress

Add the ability to pass default signal handler for SIGWINCH in BBProgress
because with multiple instace of BBProgress the original signal handler
set by TerminalFilter (sigwinch_handle) is lost.

This is a fix for stack trace due to multiple async calls of ProgressBar
_handle_resize (ioctl to terminal fd), see:

NOTE: Executing SetScene Tasks
Fatal Python error: Cannot recover from stack overflow.

Current thread 0x00007f70a4793700 (most recent call first):
  File
"/home/alimonb/repos/poky/bitbake/lib/progressbar/progressbar.py", line
183 in _handle_resize
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 58
in _handle_resize
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 60
in _handle_resize
...
  File "/home/alimonb/repos/poky/bitbake/lib/bb/ui/knotty.py", line 60
in _handle_resize
...
Aborted

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/ui/knotty.py