mirror of
https://github.com/golang/go
synced 2024-11-19 15:54:46 -07:00
81b35117d9
Use the current ability to say that we don't do anything with SIGCONT by default, but programs can catch it using signal.Notify if they want. Fixes #8953. Change-Id: I67d40ce36a029cbc58a235cbe957335f4a58e1c5 Reviewed-on: https://go-review.googlesource.com/18185 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
46 lines
2.0 KiB
Go
46 lines
2.0 KiB
Go
// 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
|
|
|
|
type sigTabT struct {
|
|
flags int32
|
|
name string
|
|
}
|
|
|
|
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"},
|
|
/* 4 */ {_SigThrow, "SIGILL: illegal instruction"},
|
|
/* 5 */ {_SigThrow, "SIGTRAP: trace trap"},
|
|
/* 6 */ {_SigNotify + _SigThrow, "SIGABRT: abort"},
|
|
/* 7 */ {_SigThrow, "SIGEMT: emulate instruction executed"},
|
|
/* 8 */ {_SigPanic, "SIGFPE: floating-point exception"},
|
|
/* 9 */ {0, "SIGKILL: kill"},
|
|
/* 10 */ {_SigPanic, "SIGBUS: bus error"},
|
|
/* 11 */ {_SigPanic, "SIGSEGV: segmentation violation"},
|
|
/* 12 */ {_SigThrow, "SIGSYS: bad system call"},
|
|
/* 13 */ {_SigNotify, "SIGPIPE: write to broken pipe"},
|
|
/* 14 */ {_SigNotify, "SIGALRM: alarm clock"},
|
|
/* 15 */ {_SigNotify + _SigKill, "SIGTERM: termination"},
|
|
/* 16 */ {_SigNotify, "SIGURG: urgent condition on socket"},
|
|
/* 17 */ {0, "SIGSTOP: stop"},
|
|
/* 18 */ {_SigNotify + _SigDefault, "SIGTSTP: keyboard stop"},
|
|
/* 19 */ {_SigNotify + _SigDefault, "SIGCONT: continue after stop"},
|
|
/* 20 */ {_SigNotify, "SIGCHLD: child status has changed"},
|
|
/* 21 */ {_SigNotify + _SigDefault, "SIGTTIN: background read from tty"},
|
|
/* 22 */ {_SigNotify + _SigDefault, "SIGTTOU: background write to tty"},
|
|
/* 23 */ {_SigNotify, "SIGIO: i/o now possible"},
|
|
/* 24 */ {_SigNotify, "SIGXCPU: cpu limit exceeded"},
|
|
/* 25 */ {_SigNotify, "SIGXFSZ: file size limit exceeded"},
|
|
/* 26 */ {_SigNotify, "SIGVTALRM: virtual alarm clock"},
|
|
/* 27 */ {_SigNotify, "SIGPROF: profiling alarm clock"},
|
|
/* 28 */ {_SigNotify, "SIGWINCH: window size change"},
|
|
/* 29 */ {_SigNotify, "SIGINFO: status request from keyboard"},
|
|
/* 30 */ {_SigNotify, "SIGUSR1: user-defined signal 1"},
|
|
/* 31 */ {_SigNotify, "SIGUSR2: user-defined signal 2"},
|
|
}
|