chaperone icon indicating copy to clipboard operation
chaperone copied to clipboard

exitkills doesn't pass the error code

Open spion-h4 opened this issue 5 years ago • 1 comments

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

spion-h4 avatar Jun 03 '19 18:06 spion-h4

Patching _kill_system to pass the returncode would probably work:

def _kill_system(self):
    self.family.controller.kill_system(self.returncode)

spion-h4 avatar Jun 03 '19 18:06 spion-h4