Changeset 23312
- Timestamp:
- 07/16/07 09:54:29 (17 months ago)
- Files:
-
- 1 modified
-
trunk/launchd/src/launchctl.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/launchd/src/launchctl.c
r23311 r23312 217 217 main(int argc, char *const argv[]) 218 218 { 219 int64_t is_managed = 0; 219 220 char *l; 221 222 if ((getuid() == 0) && (vproc_swap_integer(NULL, VPROC_GSK_IS_MANAGED, NULL, &is_managed) == NULL) && (is_managed == 0)) { 223 mach_port_t root_bs = str2bsport("/"); 224 task_set_bootstrap_port(mach_task_self(), root_bs); 225 mach_port_deallocate(mach_task_self(), bootstrap_port); 226 bootstrap_port = root_bs; 227 } 220 228 221 229 istty = isatty(STDIN_FILENO);

