2014-11-11 21:00:29 -07:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package runtime
|
|
|
|
|
|
|
|
var sigtable = [...]sigTabT{
|
|
|
|
/* 0 */ {0, "SIGNONE: no trap"},
|
|
|
|
/* 1 */ {_SigNotify + _SigKill, "SIGHUP: terminal line hangup"},
|
|
|
|
/* 2 */ {_SigNotify + _SigKill, "SIGINT: interrupt"},
|
|
|
|
/* 3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit"},
|
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd
https://golang.org/cl/10173 intrduced msigsave, ensureSigM and
_SigUnblock but didn't enable the new signal save/restore mechanism for
SIG{HUP,INT,QUIT,ABRT,TERM} on DragonFly BSD, FreeBSD and OpenBSD.
At present, it looks like they have the implementation. This change
enables the new mechanism on DragonFly BSD, FreeBSD and OpenBSD the same
as Darwin, NetBSD.
Change-Id: Ifb4b4743b3b4f50bfcdc7cf1fe1b59c377fa2a41
Reviewed-on: https://go-review.googlesource.com/18657
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-01-14 22:57:41 -07:00
|
|
|
/* 4 */ {_SigThrow + _SigUnblock, "SIGILL: illegal instruction"},
|
|
|
|
/* 5 */ {_SigThrow + _SigUnblock, "SIGTRAP: trace trap"},
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 6 */ {_SigNotify + _SigThrow, "SIGABRT: abort"},
|
|
|
|
/* 7 */ {_SigThrow, "SIGEMT: emulate instruction executed"},
|
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd
https://golang.org/cl/10173 intrduced msigsave, ensureSigM and
_SigUnblock but didn't enable the new signal save/restore mechanism for
SIG{HUP,INT,QUIT,ABRT,TERM} on DragonFly BSD, FreeBSD and OpenBSD.
At present, it looks like they have the implementation. This change
enables the new mechanism on DragonFly BSD, FreeBSD and OpenBSD the same
as Darwin, NetBSD.
Change-Id: Ifb4b4743b3b4f50bfcdc7cf1fe1b59c377fa2a41
Reviewed-on: https://go-review.googlesource.com/18657
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-01-14 22:57:41 -07:00
|
|
|
/* 8 */ {_SigPanic + _SigUnblock, "SIGFPE: floating-point exception"},
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 9 */ {0, "SIGKILL: kill"},
|
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd
https://golang.org/cl/10173 intrduced msigsave, ensureSigM and
_SigUnblock but didn't enable the new signal save/restore mechanism for
SIG{HUP,INT,QUIT,ABRT,TERM} on DragonFly BSD, FreeBSD and OpenBSD.
At present, it looks like they have the implementation. This change
enables the new mechanism on DragonFly BSD, FreeBSD and OpenBSD the same
as Darwin, NetBSD.
Change-Id: Ifb4b4743b3b4f50bfcdc7cf1fe1b59c377fa2a41
Reviewed-on: https://go-review.googlesource.com/18657
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-01-14 22:57:41 -07:00
|
|
|
/* 10 */ {_SigPanic + _SigUnblock, "SIGBUS: bus error"},
|
|
|
|
/* 11 */ {_SigPanic + _SigUnblock, "SIGSEGV: segmentation violation"},
|
2016-04-27 18:35:19 -06:00
|
|
|
/* 12 */ {_SigNotify, "SIGSYS: bad system call"}, // see golang.org/issues/15204
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 13 */ {_SigNotify, "SIGPIPE: write to broken pipe"},
|
|
|
|
/* 14 */ {_SigNotify, "SIGALRM: alarm clock"},
|
|
|
|
/* 15 */ {_SigNotify + _SigKill, "SIGTERM: termination"},
|
2017-08-19 08:59:19 -06:00
|
|
|
/* 16 */ {_SigNotify + _SigIgn, "SIGURG: urgent condition on socket"},
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 17 */ {0, "SIGSTOP: stop"},
|
2017-08-19 08:59:19 -06:00
|
|
|
/* 18 */ {_SigNotify + _SigDefault + _SigIgn, "SIGTSTP: keyboard stop"},
|
|
|
|
/* 19 */ {_SigNotify + _SigDefault + _SigIgn, "SIGCONT: continue after stop"},
|
|
|
|
/* 20 */ {_SigNotify + _SigUnblock + _SigIgn, "SIGCHLD: child status has changed"},
|
|
|
|
/* 21 */ {_SigNotify + _SigDefault + _SigIgn, "SIGTTIN: background read from tty"},
|
|
|
|
/* 22 */ {_SigNotify + _SigDefault + _SigIgn, "SIGTTOU: background write to tty"},
|
|
|
|
/* 23 */ {_SigNotify + _SigIgn, "SIGIO: i/o now possible"},
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 24 */ {_SigNotify, "SIGXCPU: cpu limit exceeded"},
|
|
|
|
/* 25 */ {_SigNotify, "SIGXFSZ: file size limit exceeded"},
|
|
|
|
/* 26 */ {_SigNotify, "SIGVTALRM: virtual alarm clock"},
|
runtime: don't always unblock all signals on dragonfly, freebsd and openbsd
https://golang.org/cl/10173 intrduced msigsave, ensureSigM and
_SigUnblock but didn't enable the new signal save/restore mechanism for
SIG{HUP,INT,QUIT,ABRT,TERM} on DragonFly BSD, FreeBSD and OpenBSD.
At present, it looks like they have the implementation. This change
enables the new mechanism on DragonFly BSD, FreeBSD and OpenBSD the same
as Darwin, NetBSD.
Change-Id: Ifb4b4743b3b4f50bfcdc7cf1fe1b59c377fa2a41
Reviewed-on: https://go-review.googlesource.com/18657
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-01-14 22:57:41 -07:00
|
|
|
/* 27 */ {_SigNotify + _SigUnblock, "SIGPROF: profiling alarm clock"},
|
2017-08-19 08:59:19 -06:00
|
|
|
/* 28 */ {_SigNotify + _SigIgn, "SIGWINCH: window size change"},
|
|
|
|
/* 29 */ {_SigNotify + _SigIgn, "SIGINFO: status request from keyboard"},
|
2014-11-11 21:00:29 -07:00
|
|
|
/* 30 */ {_SigNotify, "SIGUSR1: user-defined signal 1"},
|
|
|
|
/* 31 */ {_SigNotify, "SIGUSR2: user-defined signal 2"},
|
|
|
|
/* 32 */ {_SigNotify, "SIGTHR: reserved"},
|
|
|
|
}
|