Linux deamon programming example C/C++