diff options
author | Yang Xu <yang.xu@mediatek.com> | 2023-08-11 02:20:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-11 07:58:31 +0100 |
commit | b77e23c541e6d52b133abe1970c0608cd5418207 (patch) | |
tree | 5a30a9c103235ff007fbcc1e951d01b913ac3531 /bitbake | |
parent | b9813c6a4a92865b346f1df273179feb723f92fd (diff) | |
download | poky-b77e23c541e6d52b133abe1970c0608cd5418207.tar.gz |
bitbake: server/process: fix sig handle
process.signal_received is a list for signum and not iterable,
change a suitable method to handle sig.
(Bitbake rev: bfc53b190bd2530c2bfcea0690127d7eff620f45)
Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 4d4fa6d1be..f62faed000 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -860,11 +860,10 @@ class ConnectionWriter(object): | |||
860 | process.queue_signals = True | 860 | process.queue_signals = True |
861 | self._send(obj) | 861 | self._send(obj) |
862 | process.queue_signals = False | 862 | process.queue_signals = False |
863 | try: | 863 | |
864 | for sig in process.signal_received.pop(): | 864 | while len(process.signal_received) > 0: |
865 | process.handle_sig(sig, None) | 865 | sig = process.signal_received.pop() |
866 | except IndexError: | 866 | process.handle_sig(sig, None) |
867 | pass | ||
868 | else: | 867 | else: |
869 | self._send(obj) | 868 | self._send(obj) |
870 | 869 | ||