Skip to content

Commit

Permalink
qubesd: don't manually unlink the socket
Browse files Browse the repository at this point in the history
Python 3.13 adds automatic socket cleanup - specifically, a
cleanup_socket parameter to loop.create_unix_server, and it defaults to
True. Manual cleanup is not needed anymore.
  • Loading branch information
marmarek committed Aug 23, 2024
1 parent 56ffdea commit 065e78c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions qubes/tools/qubesd.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ def main(args=None):
loop.run_forever()
loop.run_until_complete(asyncio.wait([
loop.create_task(server.wait_closed()) for server in servers]))
for sockname in socknames:
try:
os.unlink(sockname)
except FileNotFoundError:
args.app.log.warning(
'socket {} got unlinked sometime before shutdown'.format(
sockname))
finally:
loop.close()

Expand Down

0 comments on commit 065e78c

Please sign in to comment.