summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/fasync
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-07-01 15:44:42 +0000
committergVisor bot <gvisor-bot@google.com>2020-07-01 15:44:42 +0000
commit679aa8ec17b09eff84f79816491d4a566302ae9a (patch)
treeaddc70054c39fbce78edfc274adc7395883b692f /pkg/sentry/kernel/fasync
parent67de45c0739309f9252e6e951925053fdab00df6 (diff)
parentcda2979b63fad37a33706f8aa430664a9c4d0b3b (diff)
Merge release-20200622.1-49-gcda2979b6 (automated)
Diffstat (limited to 'pkg/sentry/kernel/fasync')
-rw-r--r--pkg/sentry/kernel/fasync/fasync.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/fasync/fasync.go b/pkg/sentry/kernel/fasync/fasync.go
index 323f1dfa5..153d2cd9b 100644
--- a/pkg/sentry/kernel/fasync/fasync.go
+++ b/pkg/sentry/kernel/fasync/fasync.go
@@ -176,3 +176,13 @@ func (a *FileAsync) SetOwnerProcessGroup(requester *kernel.Task, recipient *kern
a.recipientTG = nil
a.recipientPG = recipient
}
+
+// ClearOwner unsets the current signal recipient.
+func (a *FileAsync) ClearOwner() {
+ a.mu.Lock()
+ defer a.mu.Unlock()
+ a.requester = nil
+ a.recipientT = nil
+ a.recipientTG = nil
+ a.recipientPG = nil
+}