Skip to content

Commit ec4d1b3

Browse files
SnailTowardThesunwinlinvip
authored andcommitted
fix bug: run srs at startup failed. (#454)
1 parent 85a7cb8 commit ec4d1b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trunk/src/app/srs_app_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ int SrsServer::initialize_st()
639639

640640
// check asprocess.
641641
bool asprocess = _srs_config->get_asprocess();
642-
if (ppid == 1) {
642+
if (asprocess && ppid == 1) {
643643
ret = ERROR_SYSTEM_ASSERT_FAILED;
644644
srs_error("for asprocess, ppid should never be init(1), ret=%d", ret);
645645
return ret;

0 commit comments

Comments
 (0)