Projects
Browse Source     Search     Timeline     Wiki

Changeset 23600

Show
Ignore:
Timestamp:
04/18/08 14:41:05 (8 months ago)
Author:
zarzycki@…
Message:

Better documentation.

Files:
1 modified

Legend:

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

    r23597 r23600  
    388388        uint32_t min_run_time; 
    389389        uint32_t start_interval; 
    390         bool checkedin:1, anonymous:1, debug:1, inetcompat:1, inetcompat_wait:1, 
    391                      ondemand:1, session_create:1, low_pri_io:1, no_init_groups:1, priv_port_has_senders:1, 
    392                      importing_global_env:1, importing_hard_limits:1, setmask:1, legacy_mach_job:1, start_pending:1, 
    393                      globargv:1, wait4debugger:1, internal_exc_handler:1, stall_before_exec:1, only_once:1, 
    394                      currently_ignored:1, forced_peers_to_demand_mode:1, setnice:1, hopefully_exits_last:1, removal_pending:1, 
    395                      legacy_LS_job:1, sent_sigkill:1, debug_before_kill:1, weird_bootstrap:1, start_on_mount:1, 
    396                      per_user:1, hopefully_exits_first:1, deny_unknown_mslookups:1, unload_at_mig_return:1, abandon_pg:1, 
    397                      poll_for_vfs_changes:1, deny_job_creation:1, kill_via_shmem:1, sent_kill_via_shmem:1; 
     390#if 0 
     391        /* someday ... */ 
     392        enum { 
     393                J_TYPE_ANONYMOUS = 1, 
     394                J_TYPE_LANCHSERVICES, 
     395                J_TYPE_MACHINIT, 
     396                J_TYPE_INETD, 
     397        } j_type; 
     398#endif 
     399        bool debug:1,                           /* man launchd.plist --> Debug */ 
     400             ondemand:1,                        /* man launchd.plist --> KeepAlive == false */ 
     401             session_create:1,                  /* man launchd.plist --> SessionCreate */ 
     402             low_pri_io:1,                      /* man launchd.plist --> LowPriorityIO */ 
     403             no_init_groups:1,                  /* man launchd.plist --> InitGroups */ 
     404             priv_port_has_senders:1,           /* a legacy mach_init concept to make bootstrap_create_server/service() work */ 
     405             importing_global_env:1,            /* a hack during job importing */ 
     406             importing_hard_limits:1,           /* a hack during job importing */ 
     407             setmask:1,                         /* man launchd.plist --> Umask */ 
     408             anonymous:1,                       /* a process that launchd knows about, but isn't managed by launchd */ 
     409             checkedin:1,                       /* a legacy mach_init concept to detect sick jobs */ 
     410             legacy_mach_job:1,                 /* a job created via bootstrap_create_server() */ 
     411             legacy_LS_job:1,                   /* a job created via spawn_via_launchd() */ 
     412             inetcompat:1,                      /* a legacy job that wants inetd compatible semantics */ 
     413             inetcompat_wait:1,                 /* a twist on inetd compatibility */ 
     414             start_pending:1,                   /* an event fired and the job should start, but not necessarily right away */ 
     415             globargv:1,                        /* man launchd.plist --> EnableGlobbing */ 
     416             wait4debugger:1,                   /* man launchd.plist --> WaitForDebugger */ 
     417             internal_exc_handler:1,            /* MachExceptionHandler == true */ 
     418             stall_before_exec:1,               /* a hack to support an option of spawn_via_launchd() */ 
     419             only_once:1,                       /* man launchd.plist --> LaunchOnlyOnce. Note: 5465184 Rename this to "HopefullyNeverExits" */ 
     420             currently_ignored:1,               /* Make job_ignore() /  job_watch() work. If these calls were balanced, then this wouldn't be necessarily. */ 
     421             forced_peers_to_demand_mode:1,     /* A job that forced all other jobs to be temporarily launch-on-demand */ 
     422             setnice:1,                         /* man launchd.plist --> Nice */ 
     423             hopefully_exits_last:1,            /* man launchd.plist --> HopefullyExitsLast */ 
     424             removal_pending:1,                 /* a job was asked to be unloaded/removed while running, we'll remove it after it exits */ 
     425             sent_sigkill:1,                    /* job_kill() was called */ 
     426             debug_before_kill:1,               /* enter the kernel debugger before killing a job */ 
     427             weird_bootstrap:1,                 /* a hack that launchd+launchctl use during jobmgr_t creation */ 
     428             start_on_mount:1,                  /* man launchd.plist --> StartOnMount */ 
     429             per_user:1,                        /* This job is a per-user launchd managed by the PID 1 launchd */ 
     430             hopefully_exits_first:1,           /* man launchd.plist --> HopefullyExitsFirst */ 
     431             deny_unknown_mslookups:1,          /* A flag for changing the behavior of bootstrap_look_up() */ 
     432             unload_at_mig_return:1,            /* A job thoroughly confused launchd. We need to unload it ASAP */ 
     433             abandon_pg:1,                      /* man launchd.plist --> AbandonProcessGroup */ 
     434             poll_for_vfs_changes:1,            /* a hack to work around the fact that kqueues don't work on all filesystems */ 
     435             deny_job_creation:1,               /* Don't let this job create new 'job_t' objects in launchd */ 
     436             kill_via_shmem:1,                  /* man launchd.plist --> EnableTransactions */ 
     437             sent_kill_via_shmem:1;             /* We need to 'kill_via_shmem' once-and-only-once */ 
    398438        mode_t mask; 
    399439        const char label[0];