_exec_script() close fd and reset signal

+ somes more adjustements in _exec_script()
+ rough notes for non blocking CGI
This commit is contained in:
LuckyLaszlo
2022-08-16 06:50:20 +02:00
parent 4602844f5a
commit ff443c80b1
5 changed files with 107 additions and 26 deletions

View File

@@ -62,6 +62,11 @@ void Webserv::run()
std::vector<Client>().swap(_clients);
break;
}
catch (const Webserv::ExecFail& e)
{
std::cerr << e.what() << '\n';
throw;
}
catch (const std::exception& e) {
std::cerr << e.what() << '\n';
++i;