]> Cypherpunks repositories - gostls13.git/commit
syscall: add dummy SIGTERM constant to js/wasm
authorRichard Musiol <mail@richard-musiol.de>
Tue, 20 Nov 2018 15:37:50 +0000 (16:37 +0100)
committerRichard Musiol <neelance@gmail.com>
Tue, 20 Nov 2018 16:17:17 +0000 (16:17 +0000)
commit9ef145532420409a60542ec69ae3ed20a7d7c401
tree99be181df3b7e4039276334ed8897557282539bc
parentd7183ca40360bd5f8f1fcc199461344b6ee4de05
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>
src/syscall/syscall_js.go