正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -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; |
-
请 注册 或 登录 后发表评论