winlin

Merge branch '2.0release' into develop

@@ -657,7 +657,7 @@ int SrsServer::initialize_st() @@ -657,7 +657,7 @@ int SrsServer::initialize_st()
657 657
658 // check asprocess. 658 // check asprocess.
659 bool asprocess = _srs_config->get_asprocess(); 659 bool asprocess = _srs_config->get_asprocess();
660 - if (ppid == 1) { 660 + if (asprocess && ppid == 1) {
661 ret = ERROR_SYSTEM_ASSERT_FAILED; 661 ret = ERROR_SYSTEM_ASSERT_FAILED;
662 srs_error("for asprocess, ppid should never be init(1), ret=%d", ret); 662 srs_error("for asprocess, ppid should never be init(1), ret=%d", ret);
663 return ret; 663 return ret;