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-26 12:42:38 +01:00
parent 83665c4e3b
commit ec0b19b92c
7 changed files with 148 additions and 165 deletions

View file

@ -335,7 +335,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));