Changeset 23245
- Timestamp:
- 05/07/07 14:52:13 (19 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchd_core_logic.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchd_core_logic.c
r23243 r23245 932 932 } 933 933 934 job_reparent_hack(jr, "Aqua");934 job_reparent_hack(jr, NULL); 935 935 936 936 if (getpid() == 1) { … … 5156 5156 jobmgr_t jmi = NULL; 5157 5157 5158 if (strcasecmp(where, "Aqua") != 0 && strcasecmp(where, "LoginWindow") != 0) { 5158 /* NULL is only passed for our custom API for LaunchServices. If that is the case, we do magic. */ 5159 if (where == NULL) { 5160 if (strcasecmp(j->mgr->name, "LoginWindow") == 0) { 5161 where = "LoginWindow"; 5162 } else { 5163 where = "Aqua"; 5164 } 5165 } else if (strcasecmp(where, "Aqua") != 0 && strcasecmp(where, "LoginWindow") != 0) { 5159 5166 return; 5160 5167 }

