Print this page
OS-5642 containerbuddy unable to fork while using syslog driver, causing container services to hang
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Patrick Mooney <patrick.mooney@joyent.com>
OS-4818 contract template disappears on exec


 126        parameter set
 127 
 128            Defines miscellaneous other settings. Use
 129            ct_pr_tmpl_set_param(3CONTRACT) to set this term.
 130 
 131            The default parameter set is empty.
 132 
 133            The value is a bit vector comprised of some or all of:
 134 
 135            CT_PR_INHERIT
 136 
 137                If set, indicates that the process contract is to be inherited
 138                by the process contract the contract owner is a member of if
 139                the contract owner exits before explicitly abandoning the
 140                process contract.
 141 
 142                If not set, the process contract is automatically abandoned
 143                when the owner exits.
 144 
 145 











 146            CT_PR_NOORPHAN
 147 
 148                If set, all processes in a process contract are sent SIGKILL if
 149                the process contract is abandoned, either explicitly or because
 150                the holder died and CT_PR_INHERIT was not set. The scope of
 151                SIGKILL is limited to those processes which the contract author
 152                or the event source could have normally sent signals to.
 153 
 154                If this is not set and the process contract is abandoned, the
 155                process contract is orphaned, that is, continues to exist
 156                without owner.
 157 
 158 
 159            CT_PR_PGRPONLY
 160 
 161                If set, only those processes within the same process group and
 162                process contract as a fatal error-generating process are
 163                killed.
 164 
 165                If not set, all processes within the process contract are


 379 
 380            Contains definitions of event-type macros.
 381 
 382 
 383 SEE ALSO
 384        ctrun(1), ctstat(1), ctwatch(1), coreadm(1M), close(2), fork(2),
 385        ioctl(2), open(2), poll(2), ct_pr_event_get_exitstatus(3CONTRACT),
 386        ct_pr_event_get_gcorefile(3CONTRACT),
 387        ct_pr_event_get_pcorefile(3CONTRACT), ct_pr_event_get_pid(3CONTRACT),
 388        ct_pr_event_get_ppid(3CONTRACT), ct_pr_event_get_signal(3CONTRACT),
 389        ct_pr_event_get_zcorefile(3CONTRACT),
 390        ct_pr_status_get_contracts(3CONTRACT),
 391        ct_pr_status_get_members(3CONTRACT), ct_pr_status_get_param(3CONTRACT),
 392        ct_pr_tmpl_set_fatal(3CONTRACT), ct_pr_tmpl_set_param(3CONTRACT),
 393        ct_pr_tmpl_set_transfer(3CONTRACT), ct_tmpl_set_cookie(3CONTRACT),
 394        ct_tmpl_set_critical(3CONTRACT), ct_tmpl_set_informative(3CONTRACT),
 395        libcontract(3LIB), contract(4), privileges(5)
 396 
 397 
 398 
 399                                 March 25, 2008                      PROCESS(4)


 126        parameter set
 127 
 128            Defines miscellaneous other settings. Use
 129            ct_pr_tmpl_set_param(3CONTRACT) to set this term.
 130 
 131            The default parameter set is empty.
 132 
 133            The value is a bit vector comprised of some or all of:
 134 
 135            CT_PR_INHERIT
 136 
 137                If set, indicates that the process contract is to be inherited
 138                by the process contract the contract owner is a member of if
 139                the contract owner exits before explicitly abandoning the
 140                process contract.
 141 
 142                If not set, the process contract is automatically abandoned
 143                when the owner exits.
 144 
 145 
 146            CT_PR_KEEP_EXEC
 147 
 148                If set, the process contract template remains active across
 149                exec(2).  This can be used to setup a contract for children of
 150                an application which is not contract-aware. If this is not set
 151                then the system clears the active template when the process
 152                execs. Because this option is intended for an application which
 153                is not contract-aware, new child process contracts will be
 154                automatically abandoned by the parent.
 155 
 156 
 157            CT_PR_NOORPHAN
 158 
 159                If set, all processes in a process contract are sent SIGKILL if
 160                the process contract is abandoned, either explicitly or because
 161                the holder died and CT_PR_INHERIT was not set. The scope of
 162                SIGKILL is limited to those processes which the contract author
 163                or the event source could have normally sent signals to.
 164 
 165                If this is not set and the process contract is abandoned, the
 166                process contract is orphaned, that is, continues to exist
 167                without owner.
 168 
 169 
 170            CT_PR_PGRPONLY
 171 
 172                If set, only those processes within the same process group and
 173                process contract as a fatal error-generating process are
 174                killed.
 175 
 176                If not set, all processes within the process contract are


 390 
 391            Contains definitions of event-type macros.
 392 
 393 
 394 SEE ALSO
 395        ctrun(1), ctstat(1), ctwatch(1), coreadm(1M), close(2), fork(2),
 396        ioctl(2), open(2), poll(2), ct_pr_event_get_exitstatus(3CONTRACT),
 397        ct_pr_event_get_gcorefile(3CONTRACT),
 398        ct_pr_event_get_pcorefile(3CONTRACT), ct_pr_event_get_pid(3CONTRACT),
 399        ct_pr_event_get_ppid(3CONTRACT), ct_pr_event_get_signal(3CONTRACT),
 400        ct_pr_event_get_zcorefile(3CONTRACT),
 401        ct_pr_status_get_contracts(3CONTRACT),
 402        ct_pr_status_get_members(3CONTRACT), ct_pr_status_get_param(3CONTRACT),
 403        ct_pr_tmpl_set_fatal(3CONTRACT), ct_pr_tmpl_set_param(3CONTRACT),
 404        ct_pr_tmpl_set_transfer(3CONTRACT), ct_tmpl_set_cookie(3CONTRACT),
 405        ct_tmpl_set_critical(3CONTRACT), ct_tmpl_set_informative(3CONTRACT),
 406        libcontract(3LIB), contract(4), privileges(5)
 407 
 408 
 409 
 410                                  Sept 6, 2016                       PROCESS(4)