[launchd-changes] [23357] trunk/launchd/src/launchd_runtime.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 5 13:33:15 PDT 2007


Revision: 23357
          http://trac.macosforge.org/projects/launchd/changeset/23357
Author:   zarzycki at apple.com
Date:     2007-09-05 13:33:15 -0700 (Wed, 05 Sep 2007)

Log Message:
-----------
Some help for debugging reboot hangs.

Modified Paths:
--------------
    trunk/launchd/src/launchd_runtime.c

Modified: trunk/launchd/src/launchd_runtime.c
===================================================================
--- 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);
+		}
 	}
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20070905/9814cd19/attachment.html


More information about the launchd-changes mailing list