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

Commitb8ee9be

Browse files
authored
Merge pull request#1754 from EliahKagan/no-taskkill
Remove unused TASKKILL fallback in AutoInterrupt
2 parentsa30b3b7 +3f21391 commitb8ee9be

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

‎git/cmd.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
importlogging
1212
importos
1313
importsignal
14-
fromsubprocessimportcall,Popen,PIPE,DEVNULL
14+
fromsubprocessimportPopen,PIPE,DEVNULL
1515
importsubprocess
1616
importthreading
1717
fromtextwrapimportdedent
@@ -544,16 +544,6 @@ def _terminate(self) -> None:
544544
self.status=self._status_code_if_terminateorstatus
545545
exceptOSErrorasex:
546546
log.info("Ignored error after process had died: %r",ex)
547-
exceptAttributeError:
548-
# Try Windows.
549-
# For some reason, providing None for stdout/stderr still prints something. This is why
550-
# we simply use the shell and redirect to nul. Slower than CreateProcess. The question
551-
# is whether we really want to see all these messages. It's annoying no matter what.
552-
ifos.name=="nt":
553-
call(
554-
("TASKKILL /F /T /PID %s 2>nul 1>nul"%str(proc.pid)),
555-
shell=True,
556-
)
557547
# END exception handling
558548

559549
def__del__(self)->None:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp