Skip to content

Commit cbf483b

Browse files
rzikmCopilot
andauthored
Update src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs
Co-authored-by: Copilot <[email protected]>
1 parent 16aa6df commit cbf483b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Private.CoreLib/src/Microsoft/Win32/SafeHandles/SafeFileHandle.Unix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ private bool Init(string path, FileMode mode, FileAccess access, FileShare share
332332
// we take advantage of the information provided by the fstat syscall
333333
// and for regular files (most common case)
334334
// avoid one extra sys call for determining whether file can be seeked
335-
// we exclude 0-length files because they may be actually pipes
336-
// (e.g. /proc/net/route) and these are not seekable on all systems
335+
// we exclude 0-length files because they may be special files or pseudo files
336+
// (e.g. /proc/net/route in the proc filesystem) and these are not seekable on all systems
337337
if (status.Size > 0)
338338
{
339339
_canSeek = NullableBool.True;

0 commit comments

Comments
 (0)