From 214eda745d76b1f4126330f247519b7111cbe597 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 20 Jan 2016 14:53:25 +0800 Subject: [PATCH] open null dev, not close stdout or stderr. --- trunk/src/app/srs_app_process.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trunk/src/app/srs_app_process.cpp b/trunk/src/app/srs_app_process.cpp index 8f799e592..b8e2104d1 100644 --- a/trunk/src/app/srs_app_process.cpp +++ b/trunk/src/app/srs_app_process.cpp @@ -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;