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
2014-04-16 15:04:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
88094af97ada48ec67a04874abe9577c6a555be1
88094af9
1 parent
78e7a31d
refine log, add user original configure
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
5 行删除
trunk/src/main/srs_main_server.cpp
trunk/src/main/srs_main_server.cpp
查看文件 @
88094af
...
...
@@ -102,7 +102,8 @@ int main(int argc, char** argv)
srs_trace
(
"srs(simple-rtmp-server) "
RTMP_SIG_SRS_VERSION
);
srs_trace
(
"uname: "
SRS_AUTO_UNAME
);
srs_trace
(
"build: %s, %s"
,
SRS_AUTO_BUILD_DATE
,
srs_is_little_endian
()
?
"little-endian"
:
"big-endian"
);
srs_trace
(
"configure: "
SRS_AUTO_CONFIGURE
);
srs_trace
(
"configure: "
SRS_AUTO_USER_CONFIGURE
);
srs_trace
(
"features: "
SRS_AUTO_CONFIGURE
);
#ifdef SRS_AUTO_ARM_UBUNTU12
srs_trace
(
"arm tool chain: "
SRS_AUTO_ARM_TOOL_CHAIN
);
#endif
...
...
@@ -125,7 +126,7 @@ int run()
int
pid
=
fork
();
if
(
pid
==
-
1
)
{
if
(
pid
<
0
)
{
srs_error
(
"create process error. ret=-1"
);
//ret=0
return
-
1
;
}
...
...
@@ -144,13 +145,13 @@ int run()
// father
pid
=
fork
();
if
(
pid
==
-
1
)
{
srs_error
(
"create process error. ret=-1"
);
if
(
pid
<
0
)
{
srs_error
(
"create process error. ret=0"
);
return
-
1
;
}
if
(
pid
>
0
)
{
srs_trace
(
"father process exit. ret=
-1
"
);
srs_trace
(
"father process exit. ret=
0
"
);
exit
(
0
);
return
0
;
}
...
...
请
注册
或
登录
后发表评论