Commit Briefs
wait for logger after fatal()
With -f, when the main process exits after a fatal() (usually) the shell prompt is printed before the logger message. This adds a small poll to wait for the logger process to exit.
fix some logging
- we can't use log_* or fatal() before logger_init - err -> errx if errno isn't involved
lower log priority for fatal errors from CRIT to ERR
found by Anna, thanks!
use memcpy instead of bcopy
memcpy is ANSI C89, bcopy seems to be an history BSD function.
don't save the directory fd in c->pfd
scandir_fd already calls closedir, which in turns closes the fd