[New-bugs-announce] [issue36888] Create a way to check that the parent process is alive for deamonized processes

Thomas Moreau report at bugs.python.org
Sat May 11 11:36:32 EDT 2019


New submission from Thomas Moreau <thomas.moreau.2010 at gmail.com>:

In the std lib, the semaphore_tracker and the Manager rely on daemonized processes that are launched with server like loops. The cleaning of such processes is made complicated by the fact that there is no cannonical way to check that the parent process is alive.

I propose to add in context a parent_process function that would give access to a Process object representing the parent process. This way, we could benefit from sentinel to improve the clean up of this process that can be left dangling in case of hard stop from the main interpreter.

----------
components: Library (Lib)
messages: 342199
nosy: tomMoral
priority: normal
severity: normal
status: open
title: Create a way to check that the parent process is alive for deamonized processes
type: enhancement
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36888>
_______________________________________


More information about the New-bugs-announce mailing list