Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88732b6

Browse files
committed
fix(cmd): don't try to use TASKKILL on linux
Fixes#576
1 parentfdc8ecb commit88732b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,15 @@ def __del__(self):
254254
proc.terminate()
255255
proc.wait()# ensure process goes away
256256
exceptOSErrorasex:
257-
log.info("Ignored error after processhas dies: %r",ex)
257+
log.info("Ignored error after processhad died: %r",ex)
258258
pass# ignore error when process already died
259259
exceptAttributeError:
260260
# try windows
261261
# for some reason, providing None for stdout/stderr still prints something. This is why
262262
# we simply use the shell and redirect to nul. Its slower than CreateProcess, question
263263
# 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+
ifis_win:
265+
call(("TASKKILL /F /T /PID %s 2>nul 1>nul"%str(proc.pid)),shell=True)
265266
# END exception handling
266267

267268
def__getattr__(self,attr):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp