aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roverlay/tools/subproc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roverlay/tools/subproc.py b/roverlay/tools/subproc.py
index a62601f..b5fa476 100644
--- a/roverlay/tools/subproc.py
+++ b/roverlay/tools/subproc.py
@@ -7,6 +7,7 @@
import os
import subprocess
import sys
+import time
__all__ = [
'get_subproc_devnull',
@@ -98,7 +99,7 @@ def gracefully_stop_subprocess ( proc, **kill_kwargs ):
if subproc_send_term ( proc ):
proc.communicate()
except:
- stop_subprocess ( proc, **kwargs )
+ stop_subprocess ( proc, **kill_kwargs )
raise
def create_subprocess ( cmdv, **kwargs ):