Revision: 14533
Author: adrian.chadd
Date: Fri Apr  2 23:49:58 2010
Log: Issue #101 - use Cygwin setmode() function to set the FD IO mode to O_BINARY.


http://code.google.com/p/lusca-cache/source/detail?r=14533

Modified:
 /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_rebuild.c

=======================================
--- /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_rebuild.c Fri Apr 2 23:02:54 2010 +++ /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_rebuild.c Fri Apr 2 23:49:58 2010
@@ -89,6 +89,9 @@
        }

        /* Output swap header to stdout */
+#if _SQUID_CYGWIN_
+       setmode(fileno(stdout), O_BINARY);
+#endif
        (void) storeSwapLogPrintHeader(stdout);

debug(86, 1) ("ufs_rebuild: %s: rebuild type: %s\n", store_ufs_info.path, rebuild_type == REBUILD_DISK ? "REBUILD_DISK" : "REBUILD_LOG");

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to