1
0
mirror of https://github.com/golang/go synced 2024-11-26 21:31:32 -07:00
go/src
Richard Musiol 9ef1455324 syscall: add dummy SIGTERM constant to js/wasm
The js/wasm architecture does not support signals at all, but there are
already some signal constants defined because of stdlib dependencies.
This change adds a dummy constant for syscall.SIGTERM as well, to make
js/wasm compatible with more existing Go code.

There is the Go proverb "Syscall must always be guarded with build
tags.", so code should not expect syscall.SIGTERM to exist. Still,
adding SIGTERM should do more good than harm.

Fixes #28719.

Change-Id: I3554b484f96a21427491c04eb1dd57e7af5bd62f
Reviewed-on: https://go-review.googlesource.com/c/150477
Run-TryBot: Richard Musiol <neelance@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-11-20 16:17:17 +00:00
..
archive
bufio bufio: make Reader.Peek invalidate Unreads 2018-11-13 15:08:13 +00:00
builtin
bytes
cmd cmd/link, runtime: add initial cgo support for ppc64 2018-11-20 14:50:09 +00:00
compress
container container/heap: adjust wording in comments 2018-11-13 13:42:59 +00:00
context
crypto crypto/hmac: rename CheckHMAC to ValidHMAC in package docs 2018-11-17 21:29:23 +00:00
database/sql database/sql: add examples for opening and testing a DB pool 2018-11-16 17:17:09 +00:00
debug
encoding encoding/pem: test getLine does not include trailing whitespace 2018-11-19 23:35:21 +00:00
errors
expvar
flag
fmt fmt: avoid allocation when formatting byte slice arguments with verb s 2018-11-14 20:32:15 +00:00
go go/build: do not suggest runtime.Version in comment 2018-11-13 13:35:15 +00:00
hash
html
image
index/suffixarray
internal internal/cpu: move GODEBUGCPU options into GODEBUG 2018-11-14 21:47:50 +00:00
io
log
math
mime mime: correctly detect non-ASCII characters in FormatMediaType 2018-11-20 14:39:44 +00:00
net net/http: fix typo in the SameSite docs 2018-11-16 16:39:22 +00:00
os os: make RemoveAll("") fail silently on unix 2018-11-18 16:13:13 +00:00
path
plugin
reflect reflect: add comment for String method of Kind struct 2018-11-16 14:29:14 +00:00
regexp regexp: use backquotes for all regular expression examples 2018-11-20 12:05:15 +00:00
runtime cmd/link, runtime: add initial cgo support for ppc64 2018-11-20 14:50:09 +00:00
sort
strconv
strings
sync
syscall syscall: add dummy SIGTERM constant to js/wasm 2018-11-20 16:17:17 +00:00
testdata
testing testing: add example to package doc 2018-11-16 16:49:09 +00:00
text
time
unicode
unsafe cmd/compile: assume unsafe pointer arithmetic generates non-nil results 2018-11-14 21:01:36 +00:00
vendor/golang_org/x x/net/route: use libc calls on Darwin 2018-11-14 22:39:08 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
make.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
Make.dist
make.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
naclmake.bash
nacltest.bash
race.bash cmd,runtime: enable race detector on arm64 2018-11-13 16:57:22 +00:00
race.bat
run.bash build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.bat build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00
run.rc build: clear GO111MODULE during make.bash etc 2018-11-16 18:54:22 +00:00