Changeset 23013
- Timestamp:
- 01/18/07 12:37:42 (23 months ago)
- Location:
- trunk/launchd/src
- Files:
-
- 2 modified
-
launchctl.c (modified) (1 diff)
-
launchd_core_logic.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchctl.c
r23010 r23013 555 555 if (strcasecmp(lus->session_type, allowed_session) == 0) { 556 556 skipjob = false; 557 /* we have to do the following so job_reparent_hack() works within launchd */ 558 tmpa = launch_data_new_string(lus->session_type); 559 launch_data_dict_insert(thejob, tmpa, LAUNCH_JOBKEY_LIMITLOADTOSESSIONTYPE); 557 560 break; 558 561 } -
trunk/launchd/src/launchd_core_logic.c
r23012 r23013 1289 1289 return; 1290 1290 } else if (strcasecmp(key, LAUNCH_JOBKEY_LIMITLOADTOSESSIONTYPE) == 0) { 1291 for (i = 0; i < value_cnt; i++) { 1292 str = launch_data_get_string(launch_data_array_get_index(value, i)); 1293 if (job_assumes(j, str != NULL)) { 1294 job_reparent_hack(j, str); 1295 } 1296 } 1291 job_log(j, LOG_NOTICE, "launchctl should have transformed the \"%s\" array to a string", LAUNCH_JOBKEY_LIMITLOADTOSESSIONTYPE); 1292 return; 1297 1293 } 1298 1294 break;

