wpa_supplicant: Reopen debug log file upon receipt of SIGHUP signal
This is useful for logrotate to be able to rotate the file even if the control interface is not enabled (e.g., when using DBus). Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
This commit is contained in:
parent
d8fd633ebb
commit
1248e58492
1 changed files with 5 additions and 0 deletions
|
@ -963,6 +963,11 @@ static void wpa_supplicant_reconfig(int sig, void *signal_ctx)
|
||||||
wpa_supplicant_terminate_proc(global);
|
wpa_supplicant_terminate_proc(global);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wpa_debug_reopen_file() < 0) {
|
||||||
|
/* Ignore errors since we cannot really do much to fix this */
|
||||||
|
wpa_printf(MSG_DEBUG, "Could not reopen debug log file");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue