Originally Posted by
seforix
Thanks to both of you for your answers. Regarding to the use of threads, I'd like to avoid it if possible. I want to do it in a more elegant way.
Right now I'm reading a lot about process and trying a lot of different stuff without success, trying to use dup2(), execl() and nothing seems to work. But at least I'm understanding a little bit more what I want to do: I want to communicate to CHILD processes. Because each time the server receives a new connection it creates a new child process with fork() and I want to communicate them.
Nevertheless, I'm completely clueless about how to do it. So any further help will be appreciated. I'd be very glad if you can also post some code.
Thanks in advance.