Skip to content

Commit

Permalink
fix bug: run srs at startup failed. (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
SnailTowardThesun authored and winlinvip committed Nov 24, 2016
1 parent 85a7cb8 commit ec4d1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ int SrsServer::initialize_st()

// check asprocess.
bool asprocess = _srs_config->get_asprocess();
if (ppid == 1) {
if (asprocess && ppid == 1) {
ret = ERROR_SYSTEM_ASSERT_FAILED;
srs_error("for asprocess, ppid should never be init(1), ret=%d", ret);
return ret;
Expand Down

0 comments on commit ec4d1b3

Please sign in to comment.