This is a little C language module to include into your Linux (or other POSIX compatible) applications, which will allow to easily drop root privileges and become a daemon service process running under a special user or "nobody".
See the provided example program for a quick start.
https://github.com/0xebef/cobalt-daemon
License: LGPLv3 or later
Copyright (c) 2016, 0xebef