Skip to content

Commit

Permalink
fix regression: close can raise OSError if the fd is invalid
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21733 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 20, 2019
1 parent fae7025 commit c190adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/os_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def close_fds(excluding=(0, 1, 2)):
if i not in excluding:
try:
os.close(i)
except IOError:
except (IOError, OSError):
pass

def get_all_fds():
Expand Down

0 comments on commit c190adc

Please sign in to comment.