winlin

open null dev, not close stdout or stderr.

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