Commit 9ef14553 authored by Richard Musiol's avatar Richard Musiol Committed by Richard Musiol

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: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent d7183ca4
...@@ -74,6 +74,7 @@ const ( ...@@ -74,6 +74,7 @@ const (
SIGKILL SIGKILL
SIGTRAP SIGTRAP
SIGQUIT SIGQUIT
SIGTERM
) )
func (s Signal) Signal() {} func (s Signal) Signal() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment