diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-08-03 14:33:41 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-08-03 14:33:41 -0700 |
commit | 8b5b5186965c47605ba004d317e8fd58e70e97cd (patch) | |
tree | 542d86a8dde329d6b2abcd977352a0432620fbf9 /NEWS | |
parent | JobStatusDisplay: increase the default width to 100 (diff) | |
download | portage-8b5b5186965c47605ba004d317e8fd58e70e97cd.tar.gz portage-8b5b5186965c47605ba004d317e8fd58e70e97cd.tar.bz2 portage-8b5b5186965c47605ba004d317e8fd58e70e97cd.zip |
_EbuildFetcherProcess: Handle SIGTERM
Fix _EbuildFetcherProcess to handle SIGTERM, so that FETCHCOMMAND
processes will not be left running in the background:
* Convert the fetch function to an async_fetch coroutine function
so that it can use asyncio.CancelledError handlers to terminate
running processes.
* Use multiprocessing.active_children() to detect and terminate
any processes that asyncio.CancelledError handlers did not have
an opportunity to terminate because the exception arrived too
soon after fork/spawn.
* Add unit test to verify that a child process is correctly
killed when EbuildFetcher is cancelled, with short timeout in
case it takes some time for the process to disappear.
Bug: https://bugs.gentoo.org/936273
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -28,6 +28,9 @@ Bug fixes: * repository: config: Allow a repository to be configured using one of its aliases rather than its primary name (bug #935830). +* emerge: Fix parallel-fetch to properly terminate FETCOMMAND processes when + needed, using a SIGTERM handler (bug #936273). + portage-3.0.65 (2024-06-04) -------------- |