added semaphore and shared memory to print without superposition between parent and child process

This commit is contained in:
hugogogo
2022-08-22 14:52:31 +02:00
parent 5225e3258b
commit f7b31c7db7
14 changed files with 127 additions and 65 deletions

View File

@@ -5,10 +5,16 @@
#include "Webserv.hpp"
#include "ConfigParser.hpp"
family_state family;
// debug
family_state g_family;
sem_t* g_shmem;
// debug end
int main(int ac, char **av)
{
// debug
init_semaphore();
std::vector<ServerConfig>* servers_config = NULL;
try
{