open null dev, not close stdout or stderr.

pull/609/head
winlin 9 years ago
parent a5e5fd3784
commit 214eda745d

@ -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;

Loading…
Cancel
Save