I am trying to write logging code for my http server and I decided to
make a more abstract logging facility, instead of building it into the
server (so that I'd be able to use it on another project very easily).
Basically, I want the program that is using it to do:
logger_pid = logger_init("/path/to/logfile");
logit(LOG_FATAL, "I died!");
logit(LOG_DEBUG, "put debug msg here");
logger_init() forks a child, then calls logger_main() who opens the
logfile then creates a FIFO and opens it for reading.
when logit() is called, it opens the FIFO for writing, then sends ...