Pierre A. Humblet
Sat Feb 22 20:13:00 GMT 2003

At 02:35 PM 2/22/2003 -0500, Christopher Faylor wrote:
>Applied with one minor change.  I shortened "Cygwin PID = %u" to just "PID

Hmm, I had another look while resolving the conflict and now I wonder
        fputc ('\n', fp);
        UnlockFile (fHandle, 0, 0, 1, 0);
        if (ferror (fp))
          debug_printf ("error in writing syslog");
        fclose (fp);
Shouldn't we fflush before the Unlock, or better remove the
Unlock altogether? The line is probably still sitting in the 
stream buffer and Windows won't see a write until the file
is closed.


More information about the Cygwin-patches mailing list