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 23be00c commit d43a12b
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 d43a12b

Please sign in to comment.