Revision
23876
Author
dsorresso@apple.com
Date
2009-03-30 21:24:57 -0700 (Mon, 30 Mar 2009)

Log Message

Let's check for 0 instead.

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_runtime.c (23875 => 23876)


--- trunk/launchd/src/launchd_runtime.c	2009-03-30 23:02:31 UTC (rev 23875)
+++ trunk/launchd/src/launchd_runtime.c	2009-03-31 04:24:57 UTC (rev 23876)
@@ -1823,7 +1823,7 @@
 		g_use_gmalloc = true;
 	}
 	
-	if( pid1_magic && stat("/var/db/.launchd_log_pid1_shutdown", &sb) ) {
+	if( pid1_magic && stat("/var/db/.launchd_log_pid1_shutdown", &sb) == 0 ) {
 		g_log_pid1_shutdown = true;
 	}