mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug: run srs at startup failed. (#454)
This commit is contained in:
parent
85a7cb884f
commit
ec4d1b3b4f
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ int SrsServer::initialize_st()
|
||||||
|
|
||||||
// check asprocess.
|
// check asprocess.
|
||||||
bool asprocess = _srs_config->get_asprocess();
|
bool asprocess = _srs_config->get_asprocess();
|
||||||
if (ppid == 1) {
|
if (asprocess && ppid == 1) {
|
||||||
ret = ERROR_SYSTEM_ASSERT_FAILED;
|
ret = ERROR_SYSTEM_ASSERT_FAILED;
|
||||||
srs_error("for asprocess, ppid should never be init(1), ret=%d", ret);
|
srs_error("for asprocess, ppid should never be init(1), ret=%d", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue