added semaphore and shared memory to print without superposition between parent and child process
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user