fixed CGI alloc
+ handle unknow status from script
This commit is contained in:
@@ -24,7 +24,7 @@ void Webserv::init_virtual_servers(std::vector<ServerConfig>* servers)
|
||||
continue;
|
||||
}
|
||||
|
||||
ret = ::socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0); // (SOCK_CLOEXEC) for CGI fork ?
|
||||
ret = ::socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK | SOCK_CLOEXEC, 0);
|
||||
if (ret == -1)
|
||||
{
|
||||
std::perror("err socket()");
|
||||
|
||||
Reference in New Issue
Block a user