(logfd, logopen): New. (loginit): Set logfd, return success. (logerror): Use logfd. (logreopen): New. (relo, main): Use it.