Here are 2 patches related to logfile rotation.

The first is a Windows-specific bug that would cause the logfile to never be rotated.
Windows does not update file meta-data (like file size) until the file is fsync'ed.
This patch calls fsync() on the fd before querying size, so that the actual size is returned.

The second is a general fix to rotate the logfile regardless of the copy_error_log setting.
According to the manual, ( setting copy_error_log to false should not prevent logfile rotation.