diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst index b5caf5502d0e1c..c2ffe69259a6ad 100644 --- a/Doc/library/atexit.rst +++ b/Doc/library/atexit.rst @@ -15,7 +15,8 @@ at interpreter termination time they will be run in the order ``C``, ``B``, **Note:** The functions registered via this module are not called when the program is killed by a signal not handled by Python, when a Python fatal -internal error is detected, or when :func:`os._exit` is called. +internal error is detected, or when :func:`os._exit` or :func:`os.exec\* +` are called. **Note:** The effect of registering or unregistering functions from within a cleanup function is undefined.