daemon error handling: Define a new function reply_with_perror_errno.