summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/pipe/writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/kernel/pipe/writer.go')
-rw-r--r--pkg/sentry/kernel/pipe/writer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/pipe/writer.go b/pkg/sentry/kernel/pipe/writer.go
index 0f29fbc43..8d5b68541 100644
--- a/pkg/sentry/kernel/pipe/writer.go
+++ b/pkg/sentry/kernel/pipe/writer.go
@@ -27,8 +27,11 @@ type Writer struct {
}
// Release implements fs.FileOperations.Release.
+//
+// This overrides ReaderWriter.Release.
func (w *Writer) Release() {
w.Pipe.wClose()
+
// Wake up readers.
w.Pipe.Notify(waiter.EventHUp)
}