]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Delete stale note about mp.Lock.acquire/SIGINT (GH-120929) (GH-122079)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 21 Jul 2024 06:24:56 +0000 (08:24 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Jul 2024 06:24:56 +0000 (06:24 +0000)
Delete stale note about mp.Lock.acquire/SIGINT (GH-120929)
(cherry picked from commit 0dcbc8385322ff51f7fc3e586027d880275df4fa)

Co-authored-by: Andrey Mishchenko <mishchea@gmail.com>
Doc/library/multiprocessing.rst

index 9f4ac4d5c1f9c06be8edcf6a78424f77b1490418..a74f582b5f046574b0213f5bef9f9015e29c9369 100644 (file)
@@ -1466,17 +1466,6 @@ object -- see :ref:`multiprocessing-managers`.
    On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
    a timeout will emulate that function's behavior using a sleeping loop.
 
-.. note::
-
-   If the SIGINT signal generated by :kbd:`Ctrl-C` arrives while the main thread is
-   blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock.acquire`,
-   :meth:`RLock.acquire`, :meth:`Semaphore.acquire`, :meth:`Condition.acquire`
-   or :meth:`Condition.wait` then the call will be immediately interrupted and
-   :exc:`KeyboardInterrupt` will be raised.
-
-   This differs from the behaviour of :mod:`threading` where SIGINT will be
-   ignored while the equivalent blocking calls are in progress.
-
 .. note::
 
    Some of this package's functionality requires a functioning shared semaphore