[launchd-changes] [23614] branches/SULeopard/launchd/src/launchctl.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Apr 30 14:32:53 PDT 2008


Revision: 23614
          http://trac.macosforge.org/projects/launchd/changeset/23614
Author:   zarzycki at apple.com
Date:     2008-04-30 14:32:53 -0700 (Wed, 30 Apr 2008)

Log Message:
-----------
<rdar://problem/5865623> Boot fail count doesn't increase with unclean-boot issue

Modified Paths:
--------------
    branches/SULeopard/launchd/src/launchctl.c

Modified: branches/SULeopard/launchd/src/launchctl.c
===================================================================
--- branches/SULeopard/launchd/src/launchctl.c	2008-04-30 21:14:41 UTC (rev 23613)
+++ branches/SULeopard/launchd/src/launchctl.c	2008-04-30 21:32:53 UTC (rev 23614)
@@ -2805,7 +2805,10 @@
 #if TARGET_OS_EMBEDDED
 	if (path_check("/etc/fstab")) {
 		const char *mount_tool[] = { "mount", "-vat", "nonfs", NULL };
-		assumes(fwexec(mount_tool, true) != -1);
+		if (!assumes(fwexec(mount_tool, true) != -1)) {
+			assumes(fwexec(nvram_tool, true) != -1);
+			assumes(reboot(RB_AUTOBOOT) != -1);
+		}
 	} else
 #endif
 	{

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


More information about the launchd-changes mailing list