added semaphore and shared memory to print without superposition between parent and child process
This commit is contained in:
@@ -8,7 +8,7 @@ void Webserv::_accept_connection(listen_socket &lsocket)
|
||||
int accepted_fd;
|
||||
std::map<std::string, std::string> infos;
|
||||
|
||||
std::cerr << family << "| " << " accept() socket (" << lsocket.fd << ")\n";
|
||||
print_secure(" accept() socket (" + ::itos(lsocket.fd) + ")\n");
|
||||
addr_len = sizeof addr;
|
||||
accepted_fd = ::accept(lsocket.fd, (sockaddr*)&addr, &addr_len);
|
||||
if (accepted_fd == -1)
|
||||
|
||||
Reference in New Issue
Block a user