Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b458c89

Browse files
authored
Ignore errors from SetPipeSz in AnonymousPipeServerStream on Unix (#28506)
1 parent d59ee45 commit b458c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.IO.Pipes/src/System/IO/Pipes/AnonymousPipeServerStream.Unix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private unsafe void Create(PipeDirection direction, HandleInheritability inherit
3030
// bufferSize is just advisory and ignored if platform does not support setting pipe capacity via fcntl.
3131
if (bufferSize > 0 && Interop.Sys.Fcntl.CanGetSetPipeSz)
3232
{
33-
CheckPipeCall(Interop.Sys.Fcntl.SetPipeSz(serverHandle, bufferSize));
33+
Interop.Sys.Fcntl.SetPipeSz(serverHandle, bufferSize); // advisory, ignore errors
3434
}
3535

3636
// We're connected. Finish initialization using the newly created handles.

0 commit comments

Comments
 (0)