Skip to content

Commit

Permalink
Make sure wpa_supplicant reopens debug log file
Browse files Browse the repository at this point in the history
  • Loading branch information
tachang committed Mar 20, 2022
1 parent 63dfdba commit 086fe41
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions custompackages/package/wpa_supplicant/0007-reopen-debug-log.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
This is useful for logrotate to be able to rotate the file even the CLI control
interface is not enabled (e.g. when using DBus).
---
wpa_supplicant/wpa_supplicant.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 9951b0f..493b3a8 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -963,6 +963,7 @@ static void wpa_supplicant_reconfig(int sig, void *signal_ctx)
wpa_supplicant_terminate_proc(global);
}
}
+ wpa_debug_reopen_file();
}


--
2.4.3

0 comments on commit 086fe41

Please sign in to comment.