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://www.netzmafia.de/skripten/unix/linux-daemon-howto.html
Good, everything fine.
Now, for the listening part I have no problems, 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, is the fork part still good in C++11?
Is there a newer approach to building a Linux service, or is the how-to still good?