From f0b081174f15d0de15774e4af9a2bcaadd4f6a1f Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Mon, 23 Nov 2020 20:50:27 +0200 Subject: [PATCH] Remove the socket on daemon shutdown --- daemon/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/src/lib.rs b/daemon/src/lib.rs index 104c4da..5aba255 100644 --- a/daemon/src/lib.rs +++ b/daemon/src/lib.rs @@ -307,6 +307,7 @@ impl Daemon { controller.commit_gpu_power_states(); controller.set_power_profile(PowerProfile::Auto); } + fs::remove_file(SOCK_PATH).expect("Failed to remove socket"); } std::process::exit(0); }