watchdog: don't do fileno on child logfile fd if it hasn't been set yet.