正在显示
1 个修改的文件
包含
0 行增加
和
6 行删除
| @@ -150,12 +150,6 @@ int srs_redirect_output(string from_file, int to_fd) | @@ -150,12 +150,6 @@ int srs_redirect_output(string from_file, int to_fd) | ||
| 150 | return ret; | 150 | return ret; |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | - // disable output. | ||
| 154 | - if (from_file == SRS_CONSTS_NULL_FILE) { | ||
| 155 | - ::close(to_fd); | ||
| 156 | - return ret; | ||
| 157 | - } | ||
| 158 | - | ||
| 159 | // redirect the fd to file. | 153 | // redirect the fd to file. |
| 160 | int fd = -1; | 154 | int fd = -1; |
| 161 | int flags = O_CREAT|O_WRONLY|O_APPEND; | 155 | int flags = O_CREAT|O_WRONLY|O_APPEND; |
-
请 注册 或 登录 后发表评论