From 67feb20741193d95ce0a8f4f31c780fa5c30e565 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 17 Mar 2017 14:07:41 +0100 Subject: [PATCH] Fixed forking bug --- lib/stream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stream.cpp b/lib/stream.cpp index 3434d26a..af60fc7a 100644 --- a/lib/stream.cpp +++ b/lib/stream.cpp @@ -271,6 +271,8 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir } if (pid == 0){ + Socket::Connection io(0, 1); + io.close(); DEBUG_MSG(DLVL_DONTEVEN, "execvp"); execvp(argv[0], argv); FAIL_MSG("Starting process %s for stream %s failed: %s", argv[0], streamname.c_str(), strerror(errno));