Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-08-26 23:02:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fe4cdceb15b670ced1d7328c8c8bb4bd593521db
fe4cdceb
1 parent
9c2beffe
always wait for process to terminated when SIGKILL.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
trunk/src/app/srs_app_utility.cpp
trunk/src/app/srs_app_utility.cpp
查看文件 @
fe4cdce
...
...
@@ -274,8 +274,11 @@ int srs_kill_forced(int& pid)
// other signals, directly exit(123), for example:
// 9) SIGKILL 15) SIGTERM
int
status
=
0
;
if
(
waitpid
(
pid
,
&
status
,
0
)
<
0
)
{
return
ERROR_SYSTEM_KILL
;
// @remark when we use SIGKILL to kill process, it must be killed,
// so we always wait it to quit by infinite loop.
while
(
waitpid
(
pid
,
&
status
,
0
)
<
0
)
{
st_usleep
(
10
*
1000
);
continue
;
}
srs_trace
(
"SIGKILL stop process pid=%d ok."
,
pid
);
...
...
请
注册
或
登录
后发表评论