1
0
Fork 0
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:
winlin 2016-01-20 14:53:25 +08:00
parent a5e5fd3784
commit 214eda745d

View file

@ -150,12 +150,6 @@ int srs_redirect_output(string from_file, int to_fd)
return ret; return ret;
} }
// disable output.
if (from_file == SRS_CONSTS_NULL_FILE) {
::close(to_fd);
return ret;
}
// redirect the fd to file. // redirect the fd to file.
int fd = -1; int fd = -1;
int flags = O_CREAT|O_WRONLY|O_APPEND; int flags = O_CREAT|O_WRONLY|O_APPEND;