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

Commitb137f55

Browse files
sugiderenio
authored andcommitted
Ignore signal exception on AutoInterrupt destructor.
When command run as subprocess, AutoInterrupt will kill theprocess on destructor. However, if process already finished,it raise OSError exception.This fix just ignore OSError on os.kill.Conflicts:git/cmd.py
1 parent56cc93a commitb137f55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎git/cmd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def __del__(self):
8787
# try to kill it
8888
try:
8989
os.kill(self.proc.pid,2)# interrupt signal
90+
exceptOSError:
91+
pass# ignore error when process already died
9092
exceptAttributeError:
9193
# try windows
9294
# for some reason, providing None for stdout/stderr still prints something. This is why

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp