Commit 1a921e70 authored by vvaltman's avatar vvaltman

added SIGUSR1 handler to rotate logs

parent 4ec6e306
......@@ -650,9 +650,10 @@ int main (int argc, char **argv) {
if (daemonize) {
signal (SIGHUP, sighup_handler);
signal (SIGUSR1, sigusr1_handler);
reopen_logs ();
}
signal (SIGUSR1, sigusr1_handler);
if (!disable_output) {
printf (
"Telegram-cli version " TGL_VERSION ", Copyright (C) 2013-2014 Vitaly Valtman\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment