[PATCH v2] wpa_supplicant: Reopen debug log file upon receipt of SIGHUP signal

Lubomir Rintel lkundrak at v3.sk
Fri Oct 23 09:02:42 PDT 2015


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).

Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
Changes since v1:
  - Just added a sign-off

 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 f5d7386..3f54547 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




More information about the Hostap mailing list