mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
open null dev, not close stdout or stderr.
This commit is contained in:
parent
a5e5fd3784
commit
214eda745d
1 changed files with 0 additions and 6 deletions
|
@ -150,12 +150,6 @@ int srs_redirect_output(string from_file, int to_fd)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// disable output.
|
||||
if (from_file == SRS_CONSTS_NULL_FILE) {
|
||||
::close(to_fd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
// redirect the fd to file.
|
||||
int fd = -1;
|
||||
int flags = O_CREAT|O_WRONLY|O_APPEND;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue