1// Copyright 2022 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//go:build unix && !linux
6
7package runtime
8
9// sigFromUser reports whether the signal was sent because of a call
10// to kill.
11//
12//go:nosplit
13func (c *sigctxt) sigFromUser() bool {
14	return c.sigcode() == _SI_USER
15}
16