Projects
Browse Source     Search     Timeline     Wiki

Changeset 23013

Show
Ignore:
Timestamp:
01/18/07 12:37:42 (23 months ago)
Author:
zarzycki@…
Message:

Fix the last checkin.

Location:
trunk/launchd/src
Files:
2 modified

Legend:

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

    r23010 r23013  
    555555                                if (strcasecmp(lus->session_type, allowed_session) == 0) { 
    556556                                        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); 
    557560                                        break; 
    558561                                } 
  • trunk/launchd/src/launchd_core_logic.c

    r23012 r23013  
    12891289                        return; 
    12901290                } 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; 
    12971293                } 
    12981294                break;