From d43a12b33efe9d86f515e23b3d7762ee7880d147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 23 Aug 2024 15:50:32 +0200 Subject: [PATCH] qubesd: don't manually unlink the socket 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. --- qubes/tools/qubesd.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qubes/tools/qubesd.py b/qubes/tools/qubesd.py index aa26accdd..56bcd76f9 100644 --- a/qubes/tools/qubesd.py +++ b/qubes/tools/qubesd.py @@ -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()