Log to syslog when running in daemon mode.

This commit is contained in:
Zhang Yi
2013-12-11 23:59:05 +08:00
parent 16516b3767
commit c6b3b99fe0
5 changed files with 38 additions and 10 deletions
+2 -1
View File
@@ -988,6 +988,7 @@ int main (int argc, char **argv)
if (pid_flags)
{
USE_SYSLOG(argv[0]);
demonize(pid_path);
}
@@ -1043,7 +1044,7 @@ int main (int argc, char **argv)
}
// Setup UDP
if (udprelay)
if (udprelay)
{
LOGD("udprelay enabled.");
udprelay_init(server_host[0], server_port, asyncns, m, iface);