Changeset 23564
- Timestamp:
- 03/21/08 15:53:56 (9 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchctl.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchctl.c
r23551 r23564 319 319 { 320 320 char s[1000], *c, *av[100]; 321 const char *file; 321 322 size_t len, i; 322 323 FILE *f; 323 324 324 if (!(f = fopen("/etc/launchd.conf", "r"))) { 325 if (getppid() == 1) { 326 file = "/etc/launchd.conf"; 327 } else { 328 file = "/etc/launchd-user.conf"; 329 } 330 331 if (!(f = fopen(file, "r"))) { 325 332 return; 326 333 } … … 1626 1633 } 1627 1634 1635 if (strcasecmp(session_type, VPROCMGR_SESSION_BACKGROUND) == 0) { 1636 read_launchd_conf(); 1628 1637 #if HAVE_SECURITY 1629 if (strcasecmp(session_type, VPROCMGR_SESSION_BACKGROUND) == 0) {1630 1638 assumes(SessionCreate(sessionKeepCurrentBootstrap, 0) == 0); 1631 }1632 1639 #endif 1640 } 1633 1641 1634 1642 return load_and_unload_cmd(the_argc, load_launchd_items);

