Merge "initialize inherited FD after logging" into main