New submission from Thomas Moreau <thomas.moreau.2...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36888>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to