summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-14 23:51:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-14 23:51:17 +0000
commit2a4ab311c9589f91320568210ce5f12e0622652c (patch)
tree8f9b91df8539a0d2f107b3ec3d1057e2916ee4bf /pkg
parent697b5251faa0f293d7caca08a88d7e9c37d545e6 (diff)
parent5baf9dc2fbb459828b4102b0a1c5214879434c03 (diff)
Merge release-20200211.0-24-g5baf9dc (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/kernel/kernel.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/kernel.go b/pkg/sentry/kernel/kernel.go
index ea21af33f..7da0368f1 100644
--- a/pkg/sentry/kernel/kernel.go
+++ b/pkg/sentry/kernel/kernel.go
@@ -1169,6 +1169,14 @@ func (k *Kernel) SendExternalSignal(info *arch.SignalInfo, context string) {
k.sendExternalSignal(info, context)
}
+// SendExternalSignalThreadGroup injects a signal into an specific ThreadGroup.
+// This function doesn't skip signals like SendExternalSignal does.
+func (k *Kernel) SendExternalSignalThreadGroup(tg *ThreadGroup, info *arch.SignalInfo) error {
+ k.extMu.Lock()
+ defer k.extMu.Unlock()
+ return tg.SendSignal(info)
+}
+
// SendContainerSignal sends the given signal to all processes inside the
// namespace that match the given container ID.
func (k *Kernel) SendContainerSignal(cid string, info *arch.SignalInfo) error {