Library to implement a well-behaved Unix daemon process