The situation: a small new project of a service listening on socket.
Preliminary study: this answer how to make a process daemon and the link in the answer: http://ift.tt/1cya1hA
Good, everything fine.
Now, for the listening part I must have no problem, but for threads I started to watch c++ 11 specs. So I included:
#include <thread>
This is nice, just calling std::thread, I can open a thread on new connections.
So I was just wondering. Id the fork part still good in c++ 11?
Is there a newer approach to build a linux service, or the howto is still good?
Aucun commentaire:
Enregistrer un commentaire