Revision
23357
Author
zarzycki@apple.com
Date
2007-09-05 13:33:15 -0700 (Wed, 05 Sep 2007)

Log Message

Some help for debugging reboot hangs.

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_runtime.c (23356 => 23357)


--- 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);
+		}
 	}
 }