mirror of
https://github.com/markqvist/rnsh.git
synced 2025-08-08 14:42:11 -04:00
Add tests for and fix #14
This commit is contained in:
parent
a07ce53bf9
commit
458a2391df
5 changed files with 82 additions and 8 deletions
|
@ -84,6 +84,7 @@ class SubprocessReader(contextlib.AbstractContextManager):
|
|||
self._log.debug(f"cleanup()")
|
||||
if self.process and self.process.running:
|
||||
self.process.terminate(kill_delay=0.1)
|
||||
time.sleep(0.5)
|
||||
|
||||
def __exit__(self, __exc_type: typing.Type[BaseException], __exc_value: BaseException,
|
||||
__traceback: types.TracebackType) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue