Projects
Browse Source     Search     Timeline     Wiki

Changeset 23530

Show
Ignore:
Timestamp:
2008-03-04 09:53:17 (7 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5770964> More flexible is_apple_internal() check [10A14 vs. 10A12: 3-4 sec boot time regression (launchd)]

Location:
trunk/launchd/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/launchctl.c

    r23525 r23530  
    31913191        struct stat sb; 
    31923192 
    3193         if (stat("/AppleInternal", &sb) == 0) { 
     3193        if (stat("/AppleInternal", &sb) == 0 && stat("/var/db/disableAppleInternal", &sb) == -1) { 
    31943194                do_apple_internal_magic = true; 
    31953195        } 
  • trunk/launchd/src/launchd_runtime.c

    r23519 r23530  
    16481648        } 
    16491649 
    1650         if (stat("/AppleInternal", &sb) != -1) { 
     1650        if (stat("/AppleInternal", &sb) == 0 && stat("/var/db/disableAppleInternal", &sb) == -1) { 
    16511651                do_apple_internal_logging = true; 
    16521652        }