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-22 10:30:42 +0100 |
commit | 50c5035dc8a96fbc68f419bd90d4bd52fae11240 (patch) | |
tree | 6e9a6fae4467c66c23218282db2e357713f46e82 /bitbake | |
parent | c078df73b9bea1dec54f08092d5590edec78cc37 (diff) | |
download | poky-50c5035dc8a96fbc68f419bd90d4bd52fae11240.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>
Diffstat (limited to 'bitbake')
-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) |