Some help for debugging reboot hangs.
--- trunk/launchd/src/launchd_runtime.c 2007-09-05 18:20:21 UTC (rev 23356)
+++ trunk/launchd/src/launchd_runtime.c 2007-09-05 20:33:15 UTC (rev 23357)
@@ -1037,6 +1037,10 @@
{
if (ourlogfile) {
fflush(ourlogfile);
+
+ if (debug_shutdown_hangs) {
+ fcntl(fileno(ourlogfile), F_FULLFSYNC, NULL);
+ }
}
}