header file of apue
function for handle error
log function
daemon program
thread program