Register a function to run as process terminates
(self, function, *args, **kwargs)
| 1089 | self._after_fork_methods.append(after_fork_method_tuple) |
| 1090 | |
| 1091 | def register_finalize_method(self, function, *args, **kwargs): |
| 1092 | """ |
| 1093 | Register a function to run as process terminates |
| 1094 | """ |
| 1095 | finalize_method_tuple = (function, args, kwargs) |
| 1096 | if finalize_method_tuple not in self._finalize_methods: |
| 1097 | self._finalize_methods.append(finalize_method_tuple) |
| 1098 | |
| 1099 | |
| 1100 | class SignalHandlingProcess(Process): |