Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
1604f08e
提交
1604f08e
authored
4月 08, 2011
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rebind sighandlers
上级
3de9b51a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
21 行删除
+31
-21
switch_core.h
src/include/switch_core.h
+1
-0
switch_core.c
src/switch_core.c
+28
-21
switch_loadable_module.c
src/switch_loadable_module.c
+2
-0
没有找到文件。
src/include/switch_core.h
浏览文件 @
1604f08e
...
...
@@ -2205,6 +2205,7 @@ SWITCH_DECLARE(switch_bool_t) switch_cache_db_test_reactive(switch_cache_db_hand
SWITCH_DECLARE
(
switch_status_t
)
switch_cache_db_persistant_execute
(
switch_cache_db_handle_t
*
dbh
,
const
char
*
sql
,
uint32_t
retries
);
SWITCH_DECLARE
(
switch_status_t
)
switch_cache_db_persistant_execute_trans
(
switch_cache_db_handle_t
*
dbh
,
char
*
sql
,
uint32_t
retries
);
SWITCH_DECLARE
(
void
)
switch_core_set_signal_handlers
(
void
);
SWITCH_DECLARE
(
uint32_t
)
switch_core_debug_level
(
void
);
SWITCH_DECLARE
(
void
)
switch_cache_db_flush_handles
(
void
);
SWITCH_DECLARE
(
const
char
*
)
switch_core_banner
(
void
);
...
...
src/switch_core.c
浏览文件 @
1604f08e
...
...
@@ -1772,27 +1772,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
runtime
.
runlevel
++
;
/* set signal handlers */
signal
(
SIGINT
,
SIG_IGN
);
#ifdef SIGPIPE
signal
(
SIGPIPE
,
handle_SIGPIPE
);
#endif
#ifdef SIGQUIT
signal
(
SIGQUIT
,
handle_SIGQUIT
);
#endif
#ifdef SIGPOLL
signal
(
SIGPOLL
,
handle_SIGPOLL
);
#endif
#ifdef SIGIO
signal
(
SIGIO
,
handle_SIGIO
);
#endif
#ifdef TRAP_BUS
signal
(
SIGBUS
,
handle_SIGBUS
);
#endif
#ifdef SIGUSR1
signal
(
SIGUSR1
,
handle_SIGHUP
);
#endif
signal
(
SIGHUP
,
handle_SIGHUP
);
switch_core_set_signal_handlers
();
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Bringing up environment.
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Loading Modules.
\n
"
);
...
...
@@ -1806,6 +1786,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(switch_core_flag_t
switch_load_core_config
(
"post_load_switch.conf"
);
switch_core_set_signal_handlers
();
if
(
switch_event_create
(
&
event
,
SWITCH_EVENT_STARTUP
)
==
SWITCH_STATUS_SUCCESS
)
{
switch_event_add_header
(
event
,
SWITCH_STACK_BOTTOM
,
"Event-Info"
,
"System Ready"
);
switch_event_fire
(
&
event
);
...
...
@@ -1869,6 +1851,31 @@ static void win_shutdown(void)
}
#endif
SWITCH_DECLARE
(
void
)
switch_core_set_signal_handlers
(
void
)
{
/* set signal handlers */
signal
(
SIGINT
,
SIG_IGN
);
#ifdef SIGPIPE
signal
(
SIGPIPE
,
handle_SIGPIPE
);
#endif
#ifdef SIGQUIT
signal
(
SIGQUIT
,
handle_SIGQUIT
);
#endif
#ifdef SIGPOLL
signal
(
SIGPOLL
,
handle_SIGPOLL
);
#endif
#ifdef SIGIO
signal
(
SIGIO
,
handle_SIGIO
);
#endif
#ifdef TRAP_BUS
signal
(
SIGBUS
,
handle_SIGBUS
);
#endif
#ifdef SIGUSR1
signal
(
SIGUSR1
,
handle_SIGHUP
);
#endif
signal
(
SIGHUP
,
handle_SIGHUP
);
}
SWITCH_DECLARE
(
uint32_t
)
switch_core_debug_level
(
void
)
{
return
runtime
.
debug_level
;
...
...
src/switch_loadable_module.c
浏览文件 @
1604f08e
...
...
@@ -945,6 +945,8 @@ static switch_status_t switch_loadable_module_load_file(char *path, char *filena
*
new_module
=
module
;
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_CONSOLE
,
"Successfully Loaded [%s]
\n
"
,
module_interface
->
module_name
);
switch_core_set_signal_handlers
();
return
SWITCH_STATUS_SUCCESS
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论