Merge pull request #250 from rlane/killpg
kill entire process group in Node.terminate
This commit is contained in:
commit
a6a0cb4331
1 file changed
+1
-1
+1
-1
@@ -184,7 +184,7 @@ class Node( object ):
|
|||||||
def terminate( self ):
|
def terminate( self ):
|
||||||
"Send kill signal to Node and clean up after it."
|
"Send kill signal to Node and clean up after it."
|
||||||
if self.shell:
|
if self.shell:
|
||||||
os.kill( self.pid, signal.SIGKILL )
|
os.killpg( self.pid, signal.SIGKILL )
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
|
|
||||||
def stop( self ):
|
def stop( self ):
|
||||||
|
|||||||
Reference in new issue
Block a user