mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Do not batch close gofer.handle in lisafs.
In some scenarios, these handles are backed by open FDs to FIFO files. We can not delay closing of such handles because application behavior depends on the FD being closed immediately. For example, for pipes, when the write end is closed, then read(2) on the read end will return 0 indicating that there are no writers. PiperOrigin-RevId: 429698807
This commit is contained in:
@@ -105,7 +105,7 @@ func (h *handle) isOpen() bool {
|
||||
|
||||
func (h *handle) close(ctx context.Context) {
|
||||
if h.fdLisa.Client() != nil {
|
||||
h.fdLisa.CloseBatched(ctx)
|
||||
h.fdLisa.Close(ctx)
|
||||
} else {
|
||||
h.file.close(ctx)
|
||||
h.file = p9file{}
|
||||
|
||||
Reference in New Issue
Block a user