Print this page
OS-4818 contract template disappears on exec

*** 19,35 **** * CDDL HEADER END */ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_CONTRACT_PROCESS_H #define _SYS_CONTRACT_PROCESS_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/contract.h> #include <sys/time.h> #ifdef __cplusplus extern "C" { --- 19,34 ---- * CDDL HEADER END */ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2015 Joyent, Inc. */ #ifndef _SYS_CONTRACT_PROCESS_H #define _SYS_CONTRACT_PROCESS_H #include <sys/contract.h> #include <sys/time.h> #ifdef __cplusplus extern "C" {
*** 53,63 **** */ #define CT_PR_INHERIT 0x1 /* give contract to parent */ #define CT_PR_NOORPHAN 0x2 /* kill when contract is abandoned */ #define CT_PR_PGRPONLY 0x4 /* only kill process group on fatal errors */ #define CT_PR_REGENT 0x8 /* automatically detach inherited contracts */ ! #define CT_PR_ALLPARAM 0xf /* * ctr_ev_* flags */ #define CT_PR_EV_EMPTY 0x1 /* contract is empty */ --- 52,63 ---- */ #define CT_PR_INHERIT 0x1 /* give contract to parent */ #define CT_PR_NOORPHAN 0x2 /* kill when contract is abandoned */ #define CT_PR_PGRPONLY 0x4 /* only kill process group on fatal errors */ #define CT_PR_REGENT 0x8 /* automatically detach inherited contracts */ ! #define CT_PR_KEEP_EXEC 0x10 /* preserve template accross exec */ ! #define CT_PR_ALLPARAM 0x1f /* * ctr_ev_* flags */ #define CT_PR_EV_EMPTY 0x1 /* contract is empty */