mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: updated SIGSYS to cause a panic + stacktrace
On GNU/Linux, SIGSYS is specified to cause the process to terminate without a core dump. In https://codereview.appspot.com/3749041 , it appears that Golang accidentally introduced incorrect behavior for this signal, which caused Golang processes to keep running after receiving SIGSYS. This change reverts it to the old/correct behavior. Updates #15204 Change-Id: I3aa48a9499c1bc36fa5d3f40c088fdd7599e0db5 Reviewed-on: https://go-review.googlesource.com/22202 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
5e74d40952
commit
58012ea785
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ var sigtable = [...]sigTabT{
|
|||
/* 28 */ {_SigNotify, "SIGWINCH: window size change"},
|
||||
/* 29 */ {_SigNotify, "SIGIO: i/o now possible"},
|
||||
/* 30 */ {_SigNotify, "SIGPWR: power failure restart"},
|
||||
/* 31 */ {_SigNotify, "SIGSYS: bad system call"},
|
||||
/* 31 */ {_SigThrow + _SigUnblock, "SIGSYS: bad system call"},
|
||||
/* 32 */ {_SigSetStack + _SigUnblock, "signal 32"}, /* SIGCANCEL; see issue 6997 */
|
||||
/* 33 */ {_SigSetStack + _SigUnblock, "signal 33"}, /* SIGSETXID; see issues 3871, 9400, 12498 */
|
||||
/* 34 */ {_SigNotify, "signal 34"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue