Socket library updates to support detecting sockets passed as FDs, removed use of peek() in HTTP request handler, fixed 100% CPU usage problem for unfinished HTTP requests

This commit is contained in:
Thulinma 2018-11-28 11:59:03 +01:00
parent 3cb03392e1
commit 6a6dd5d7ed
7 changed files with 145 additions and 162 deletions

View file

@ -253,7 +253,7 @@ bool Util::startInput(std::string streamname, std::string filename, bool forkFir
if (pid == 0){
Socket::Connection io(0, 1);
io.close();
io.drop();
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));