1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #367, process support redirect stdout and stderr.

This commit is contained in:
winlin 2015-08-24 22:19:57 +08:00
parent 0e1861b084
commit 6fe88d088c
3 changed files with 89 additions and 19 deletions

View file

@ -24,12 +24,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <srs_app_ffmpeg.hpp>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
#ifndef _WIN32
#include <unistd.h>
#endif
#include <vector>
using namespace std;
@ -407,7 +411,7 @@ int SrsFFMPEG::start()
params.push_back(_output);
// when specified the log file.
if (false && !log_file.empty()) {
if (!log_file.empty()) {
// stdout
params.push_back("1");
params.push_back(">");