PyDocs

Nav

Generic Operating System Services

register_at_fork

os

function · Added in 3.7Unixnot WASInot Androidnot iOS
  • register_at_fork(*, before=None, after_in_parent=None, after_in_child=None)
Register callables to be called when forking a new process.

  before
    A callable to be called in the parent before the fork() syscall.
  after_in_child
    A callable to be called in the child after fork().
  after_in_parent
    A callable to be called in the parent after fork().

'before' callbacks are called in reverse order.
'after_in_child' and 'after_in_parent' callbacks are called in order.
0 Examples
No examples for os/register_at_fork.
See Also
No see-alsos for os/register_at_fork
0 Notes
No notes for register_at_fork