Send kill signal to Node and clean up after it.
( self )
| 273 | os.write( self.stdin.fileno(), encode( data ) ) |
| 274 | |
| 275 | def terminate( self ): |
| 276 | "Send kill signal to Node and clean up after it." |
| 277 | self.unmountPrivateDirs() |
| 278 | if self.shell: |
| 279 | if self.shell.poll() is None: |
| 280 | os.killpg( self.shell.pid, signal.SIGHUP ) |
| 281 | self.cleanup() |
| 282 | |
| 283 | def stop( self, deleteIntfs=False ): |
| 284 | """Stop node. |
no test coverage detected