Changeset 23566
- Timestamp:
- 2008-03-21 15:57:06 (5 months ago)
- Files:
-
- 1 modified
-
branches/SULeopard/launchd/src/launchctl.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SULeopard/launchd/src/launchctl.c
r23515 r23566 314 314 { 315 315 char s[1000], *c, *av[100]; 316 const char *file; 316 317 size_t len, i; 317 318 FILE *f; 318 319 319 if (!(f = fopen("/etc/launchd.conf", "r"))) { 320 if (getppid() == 1) { 321 file = "/etc/launchd.conf"; 322 } else { 323 file = "/etc/launchd-user.conf"; 324 } 325 326 if (!(f = fopen(file, "r"))) { 320 327 return; 321 328 } … … 1619 1626 } 1620 1627 1628 if (strcasecmp(session_type, VPROCMGR_SESSION_BACKGROUND) == 0) { 1629 read_launchd_conf(); 1621 1630 #if HAVE_SECURITY 1622 if (strcasecmp(session_type, VPROCMGR_SESSION_BACKGROUND) == 0) {1623 1631 assumes(SessionCreate(sessionKeepCurrentBootstrap, 0) == 0); 1624 }1625 1632 #endif 1633 } 1626 1634 1627 1635 return load_and_unload_cmd(the_argc, load_launchd_items);

