ID EN
OS

register_at_fork

Python 3.11

Register callables to be executed when a new child process is forked using os.fork() or similar process cloning APIs. The parameters are optional and keyword-only. Each specifies a different call point.

Syntax

PYTHON
os.register_at_fork(*, before=None, after_in_parent=None, after_in_child=None)

See Also

os.fork() subprocess PyOS_BeforeFork() PyOS_AfterFork_Parent() PyOS_AfterFork_Child() Availability