github.com/tcnksm/go@v0.0.0-20141208075154-439b32936367/src/runtime/signal_linux.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package runtime
     6  
     7  type sigTabT struct {
     8  	flags int32
     9  	name  string
    10  }
    11  
    12  var sigtable = [...]sigTabT{
    13  	/* 0 */ {0, "SIGNONE: no trap"},
    14  	/* 1 */ {_SigNotify + _SigKill, "SIGHUP: terminal line hangup"},
    15  	/* 2 */ {_SigNotify + _SigKill, "SIGINT: interrupt"},
    16  	/* 3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit"},
    17  	/* 4 */ {_SigThrow, "SIGILL: illegal instruction"},
    18  	/* 5 */ {_SigThrow, "SIGTRAP: trace trap"},
    19  	/* 6 */ {_SigNotify + _SigThrow, "SIGABRT: abort"},
    20  	/* 7 */ {_SigPanic, "SIGBUS: bus error"},
    21  	/* 8 */ {_SigPanic, "SIGFPE: floating-point exception"},
    22  	/* 9 */ {0, "SIGKILL: kill"},
    23  	/* 10 */ {_SigNotify, "SIGUSR1: user-defined signal 1"},
    24  	/* 11 */ {_SigPanic, "SIGSEGV: segmentation violation"},
    25  	/* 12 */ {_SigNotify, "SIGUSR2: user-defined signal 2"},
    26  	/* 13 */ {_SigNotify, "SIGPIPE: write to broken pipe"},
    27  	/* 14 */ {_SigNotify, "SIGALRM: alarm clock"},
    28  	/* 15 */ {_SigNotify + _SigKill, "SIGTERM: termination"},
    29  	/* 16 */ {_SigThrow, "SIGSTKFLT: stack fault"},
    30  	/* 17 */ {_SigNotify, "SIGCHLD: child status has changed"},
    31  	/* 18 */ {0, "SIGCONT: continue"},
    32  	/* 19 */ {0, "SIGSTOP: stop, unblockable"},
    33  	/* 20 */ {_SigNotify + _SigDefault, "SIGTSTP: keyboard stop"},
    34  	/* 21 */ {_SigNotify + _SigDefault, "SIGTTIN: background read from tty"},
    35  	/* 22 */ {_SigNotify + _SigDefault, "SIGTTOU: background write to tty"},
    36  	/* 23 */ {_SigNotify, "SIGURG: urgent condition on socket"},
    37  	/* 24 */ {_SigNotify, "SIGXCPU: cpu limit exceeded"},
    38  	/* 25 */ {_SigNotify, "SIGXFSZ: file size limit exceeded"},
    39  	/* 26 */ {_SigNotify, "SIGVTALRM: virtual alarm clock"},
    40  	/* 27 */ {_SigNotify, "SIGPROF: profiling alarm clock"},
    41  	/* 28 */ {_SigNotify, "SIGWINCH: window size change"},
    42  	/* 29 */ {_SigNotify, "SIGIO: i/o now possible"},
    43  	/* 30 */ {_SigNotify, "SIGPWR: power failure restart"},
    44  	/* 31 */ {_SigNotify, "SIGSYS: bad system call"},
    45  	/* 32 */ {0, "signal 32"}, /* SIGCANCEL; see issue 6997 */
    46  	/* 33 */ {0, "signal 33"}, /* SIGSETXID; see issue 3871 */
    47  	/* 34 */ {_SigNotify, "signal 34"},
    48  	/* 35 */ {_SigNotify, "signal 35"},
    49  	/* 36 */ {_SigNotify, "signal 36"},
    50  	/* 37 */ {_SigNotify, "signal 37"},
    51  	/* 38 */ {_SigNotify, "signal 38"},
    52  	/* 39 */ {_SigNotify, "signal 39"},
    53  	/* 40 */ {_SigNotify, "signal 40"},
    54  	/* 41 */ {_SigNotify, "signal 41"},
    55  	/* 42 */ {_SigNotify, "signal 42"},
    56  	/* 43 */ {_SigNotify, "signal 43"},
    57  	/* 44 */ {_SigNotify, "signal 44"},
    58  	/* 45 */ {_SigNotify, "signal 45"},
    59  	/* 46 */ {_SigNotify, "signal 46"},
    60  	/* 47 */ {_SigNotify, "signal 47"},
    61  	/* 48 */ {_SigNotify, "signal 48"},
    62  	/* 49 */ {_SigNotify, "signal 49"},
    63  	/* 50 */ {_SigNotify, "signal 50"},
    64  	/* 51 */ {_SigNotify, "signal 51"},
    65  	/* 52 */ {_SigNotify, "signal 52"},
    66  	/* 53 */ {_SigNotify, "signal 53"},
    67  	/* 54 */ {_SigNotify, "signal 54"},
    68  	/* 55 */ {_SigNotify, "signal 55"},
    69  	/* 56 */ {_SigNotify, "signal 56"},
    70  	/* 57 */ {_SigNotify, "signal 57"},
    71  	/* 58 */ {_SigNotify, "signal 58"},
    72  	/* 59 */ {_SigNotify, "signal 59"},
    73  	/* 60 */ {_SigNotify, "signal 60"},
    74  	/* 61 */ {_SigNotify, "signal 61"},
    75  	/* 62 */ {_SigNotify, "signal 62"},
    76  	/* 63 */ {_SigNotify, "signal 63"},
    77  	/* 64 */ {_SigNotify, "signal 64"},
    78  }