File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -254,14 +254,15 @@ def __del__(self):
254
254
proc .terminate ()
255
255
proc .wait () # ensure process goes away
256
256
except OSError as ex :
257
- log .info ("Ignored error after process has dies : %r" , ex )
257
+ log .info ("Ignored error after process had died : %r" , ex )
258
258
pass # ignore error when process already died
259
259
except AttributeError :
260
260
# try windows
261
261
# for some reason, providing None for stdout/stderr still prints something. This is why
262
262
# we simply use the shell and redirect to nul. Its slower than CreateProcess, question
263
263
# is whether we really want to see all these messages. Its annoying no matter what.
264
- call (("TASKKILL /F /T /PID %s 2>nul 1>nul" % str (proc .pid )), shell = True )
264
+ if is_win :
265
+ call (("TASKKILL /F /T /PID %s 2>nul 1>nul" % str (proc .pid )), shell = True )
265
266
# END exception handling
266
267
267
268
def __getattr__ (self , attr ):
You can’t perform that action at this time.
0 commit comments