MCPcopy Index your code
hub / github.com/saltstack/salt / register_after_fork_method

Method register_after_fork_method

salt/utils/process.py:1083–1089  ·  view source on GitHub ↗

Register a function to run after the process has forked

(self, function, *args, **kwargs)

Source from the content-addressed store, hash-verified

1081 return wrapped_run_func
1082
1083 def register_after_fork_method(self, function, *args, **kwargs):
1084 """
1085 Register a function to run after the process has forked
1086 """
1087 after_fork_method_tuple = (function, args, kwargs)
1088 if after_fork_method_tuple not in self._after_fork_methods:
1089 self._after_fork_methods.append(after_fork_method_tuple)
1090
1091 def register_finalize_method(self, function, *args, **kwargs):
1092 """

Callers 2

__setstate__Method · 0.95
__new__Method · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected