Projects
Browse Source     Search     Timeline     Wiki

Changeset 23245

Show
Ignore:
Timestamp:
05/07/07 14:52:13 (19 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5159767> 9A423: Bugs reported by launchd

Files:
1 modified

Legend:

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

    r23243 r23245  
    932932        } 
    933933 
    934         job_reparent_hack(jr, "Aqua"); 
     934        job_reparent_hack(jr, NULL); 
    935935 
    936936        if (getpid() == 1) { 
     
    51565156        jobmgr_t jmi = NULL; 
    51575157 
    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) { 
    51595166                return; 
    51605167        }