mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Fix ReadWithSizeAndUnlink on systems that have syscall based mmap
This commit is contained in:
@@ -118,6 +118,7 @@ func read_till_buf_full(f *os.File, buf []byte) ([]byte, error) {
|
||||
if len(p) == 0 && errors.Is(err, io.EOF) {
|
||||
err = nil
|
||||
}
|
||||
err = fmt.Errorf("Failed to read from SHM file with error: %w", err)
|
||||
return buf[:len(buf)-len(p)], err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user