Skip to content

Commit 71ad545

Browse files
author
Michael DeRoy
committed
Fixes an issue where a pipestream handle may be closed twice (Case 942966)
1 parent e01ef6d commit 71ad545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcs/class/System.Core/System.IO.Pipes/PipeStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ internal Stream Stream {
137137
#pragma warning disable 618
138138
stream = new FileStream (handle.DangerousGetHandle (),
139139
CanRead ? (CanWrite ? FileAccess.ReadWrite : FileAccess.Read)
140-
: FileAccess.Write, true, buffer_size, IsAsync);
140+
: FileAccess.Write, false, buffer_size, IsAsync);
141141
#pragma warning restore 618
142142
}
143143
return stream;

0 commit comments

Comments
 (0)