chaperone
chaperone copied to clipboard
exitkills doesn't pass the error code
It would be useful if the error code of the process is passed as the error code of chaperone if exitkills is enabled for a process.
https://github.com/garywiz/chaperone/blob/9ff2c3a5b9c6820f8750320a564ea214042df06f/chaperone/cproc/subproc.py#L560-L572
Patching _kill_system to pass the returncode would probably work:
def _kill_system(self):
self.family.controller.kill_system(self.returncode)