C version of my BlackMon FAN daemon