You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.86
Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
parent
92747312ea
commit
0b380204a4
@@ -186,7 +186,11 @@ namespace System
|
||||
{
|
||||
try {
|
||||
// TODO: Should use __ConsoleStream from reference sources
|
||||
return new FileStream (handle, access, false, bufferSize, false, true);
|
||||
var stream = new FileStream (handle, access, false, bufferSize, false, true);
|
||||
// Don't run the finalizer on the underlying stream so that System.WriteLine can be
|
||||
// called inside a finalizer during shutdown or domain unload.
|
||||
GC.SuppressFinalize (stream);
|
||||
return stream;
|
||||
} catch (IOException) {
|
||||
return Stream.Null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user