提交 a1e9233e authored 作者: Anthony Minessale's avatar Anthony Minessale

update logger stuff

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6510 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 7b34d760
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<settings> <settings>
<!-- File to log to --> <!-- File to log to -->
<!--<param name="logfile" value="/var/log/freeswitch.log"/>--> <!--<param name="logfile" value="/var/log/freeswitch.log"/>-->
<!-- At this length in bytes rotate the log file --> <!-- true to auto rotate on HUP, false to open/close -->
<param name="rotate" value="true"/>
<!-- At this length in bytes rotate the log file (0 for never) -->
<!--<param name="rollover" value="10485760"/>--> <!--<param name="rollover" value="10485760"/>-->
<!-- The level of the message to log --> <!-- The level of the message to log -->
<!--<param name="level" value="debug,info,warning,notice,error,crit,alert"/>--> <!--<param name="level" value="debug,info,warning,notice,error,crit,alert"/>-->
......
...@@ -62,7 +62,7 @@ static HANDLE shutdown_event; ...@@ -62,7 +62,7 @@ static HANDLE shutdown_event;
/* signal handler for when freeswitch is running in background mode. /* signal handler for when freeswitch is running in background mode.
* signal triggers the shutdown of freeswitch * signal triggers the shutdown of freeswitch
*/ */
static void handle_SIGHUP(int sig) static void handle_SIGTERM(int sig)
{ {
int32_t arg = 0; int32_t arg = 0;
if (sig); if (sig);
...@@ -390,11 +390,9 @@ int main(int argc, char *argv[]) ...@@ -390,11 +390,9 @@ int main(int argc, char *argv[])
return 255; return 255;
} }
if (nc) { signal(SIGTERM, handle_SIGTERM);
signal(SIGHUP, handle_SIGHUP);
signal(SIGTERM, handle_SIGHUP);
if (nc) {
#ifdef WIN32 #ifdef WIN32
FreeConsole(); FreeConsole();
#else #else
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论