Skip to content

Commit

Permalink
Add call to os.close.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnp789 committed Nov 5, 2017
1 parent 88d10b2 commit 17848e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/print.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def main():
fdpath = '/proc/self/fd/{:d}'.format(event.fd)
full_path = os.readlink(fdpath)
print(full_path)
os.close(event.fd)
assert not buf

if __name__ == '__main__':
Expand Down

0 comments on commit 17848e1

Please sign in to comment.