A C++ nap daemon