mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: Linux-only support for parent death signal
As discussed in this thread: https://groups.google.com/group/golang-dev/browse_thread/thread/5b76b7700265a787 I've tried to come up with a solution that is minimally invasive for the platforms that don't support "parent death signal", without splitting up exec_unix.go. See also: http://www.win.tue.nl/~aeb/linux/lk/lk-5.html#ss5.8 R=rsc, dave, borman, iant, mikioh.mikioh CC=golang-dev https://golang.org/cl/5487061
This commit is contained in:
parent
468e692e38
commit
2cb6fcf63f
19 changed files with 643 additions and 221 deletions
|
|
@ -659,6 +659,64 @@ const (
|
|||
PROT_NONE = 0x0
|
||||
PROT_READ = 0x1
|
||||
PROT_WRITE = 0x2
|
||||
PR_CAPBSET_DROP = 0x18
|
||||
PR_CAPBSET_READ = 0x17
|
||||
PR_ENDIAN_BIG = 0x0
|
||||
PR_ENDIAN_LITTLE = 0x1
|
||||
PR_ENDIAN_PPC_LITTLE = 0x2
|
||||
PR_FPEMU_NOPRINT = 0x1
|
||||
PR_FPEMU_SIGFPE = 0x2
|
||||
PR_FP_EXC_ASYNC = 0x2
|
||||
PR_FP_EXC_DISABLED = 0x0
|
||||
PR_FP_EXC_DIV = 0x10000
|
||||
PR_FP_EXC_INV = 0x100000
|
||||
PR_FP_EXC_NONRECOV = 0x1
|
||||
PR_FP_EXC_OVF = 0x20000
|
||||
PR_FP_EXC_PRECISE = 0x3
|
||||
PR_FP_EXC_RES = 0x80000
|
||||
PR_FP_EXC_SW_ENABLE = 0x80
|
||||
PR_FP_EXC_UND = 0x40000
|
||||
PR_GET_DUMPABLE = 0x3
|
||||
PR_GET_ENDIAN = 0x13
|
||||
PR_GET_FPEMU = 0x9
|
||||
PR_GET_FPEXC = 0xb
|
||||
PR_GET_KEEPCAPS = 0x7
|
||||
PR_GET_NAME = 0x10
|
||||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
PR_GET_TIMING = 0xd
|
||||
PR_GET_TSC = 0x19
|
||||
PR_GET_UNALIGN = 0x5
|
||||
PR_MCE_KILL = 0x21
|
||||
PR_MCE_KILL_CLEAR = 0x0
|
||||
PR_MCE_KILL_DEFAULT = 0x2
|
||||
PR_MCE_KILL_EARLY = 0x1
|
||||
PR_MCE_KILL_GET = 0x22
|
||||
PR_MCE_KILL_LATE = 0x0
|
||||
PR_MCE_KILL_SET = 0x1
|
||||
PR_SET_DUMPABLE = 0x4
|
||||
PR_SET_ENDIAN = 0x14
|
||||
PR_SET_FPEMU = 0xa
|
||||
PR_SET_FPEXC = 0xc
|
||||
PR_SET_KEEPCAPS = 0x8
|
||||
PR_SET_NAME = 0xf
|
||||
PR_SET_PDEATHSIG = 0x1
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_TASK_PERF_EVENTS_DISABLE = 0x1f
|
||||
PR_TASK_PERF_EVENTS_ENABLE = 0x20
|
||||
PR_TIMING_STATISTICAL = 0x0
|
||||
PR_TIMING_TIMESTAMP = 0x1
|
||||
PR_TSC_ENABLE = 0x1
|
||||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PTRACE_ARCH_PRCTL = 0x1e
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue