diff options
| author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2023-04-16 11:18:57 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-20 12:36:21 +0100 |
| commit | cbae80ec40c7240cf958bc2a061f60e08740f881 (patch) | |
| tree | e6fe53aaad37af8d9fb19077524292a786ea6d4b | |
| parent | 1a1025658c61d91b1f19663cdeb9432676f88787 (diff) | |
| download | poky-cbae80ec40c7240cf958bc2a061f60e08740f881.tar.gz | |
bitbake: cooker: do not abort on single ctrl-c
After b7ed7e9a815c4e10447fd499508be3dbb47f06e8 bitbake aborts immediately
when a single ctrl-c is pressed.
Patch restores the previous behavior where a single ctrl-c waits for
active tasks to finish.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15094
(Bitbake rev: 66131fa6a3e12c28710d09e1dbf3c03f2981280d)
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index c8ff3ce085..f33bca4f86 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -1764,9 +1764,9 @@ class BBCooker: | |||
| 1764 | def shutdown(self, force=False): | 1764 | def shutdown(self, force=False): |
| 1765 | if force: | 1765 | if force: |
| 1766 | self.state = state.forceshutdown | 1766 | self.state = state.forceshutdown |
| 1767 | bb.event._should_exit.set() | ||
| 1767 | else: | 1768 | else: |
| 1768 | self.state = state.shutdown | 1769 | self.state = state.shutdown |
| 1769 | bb.event._should_exit.set() | ||
| 1770 | 1770 | ||
| 1771 | if self.parser: | 1771 | if self.parser: |
| 1772 | self.parser.shutdown(clean=False) | 1772 | self.parser.shutdown(clean=False) |
