You've already forked linux-packaging-mono
Imported Upstream version 4.0.3.13
Former-commit-id: 4f1f69b42e04def9a697c2550b23b9cae645ef29
This commit is contained in:
@ -595,7 +595,8 @@ namespace System.Diagnostics {
|
||||
}
|
||||
|
||||
private StreamReader error_stream=null;
|
||||
|
||||
bool error_stream_exposed;
|
||||
|
||||
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden), Browsable (false)]
|
||||
[MonitoringDescription ("The standard error stream of this process.")]
|
||||
public StreamReader StandardError {
|
||||
@ -608,11 +609,13 @@ namespace System.Diagnostics {
|
||||
|
||||
async_mode |= AsyncModes.SyncError;
|
||||
|
||||
error_stream_exposed = true;
|
||||
return(error_stream);
|
||||
}
|
||||
}
|
||||
|
||||
private StreamWriter input_stream=null;
|
||||
bool input_stream_exposed;
|
||||
|
||||
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden), Browsable (false)]
|
||||
[MonitoringDescription ("The standard input stream of this process.")]
|
||||
@ -621,11 +624,13 @@ namespace System.Diagnostics {
|
||||
if (input_stream == null)
|
||||
throw new InvalidOperationException("Standard input has not been redirected");
|
||||
|
||||
input_stream_exposed = true;
|
||||
return(input_stream);
|
||||
}
|
||||
}
|
||||
|
||||
private StreamReader output_stream=null;
|
||||
bool output_stream_exposed;
|
||||
|
||||
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden), Browsable (false)]
|
||||
[MonitoringDescription ("The standard output stream of this process.")]
|
||||
@ -639,6 +644,7 @@ namespace System.Diagnostics {
|
||||
|
||||
async_mode |= AsyncModes.SyncOutput;
|
||||
|
||||
output_stream_exposed = true;
|
||||
return(output_stream);
|
||||
}
|
||||
}
|
||||
@ -1568,17 +1574,18 @@ namespace System.Diagnostics {
|
||||
async_error.Close ();
|
||||
|
||||
if (input_stream != null) {
|
||||
input_stream.Close();
|
||||
if (!input_stream_exposed)
|
||||
input_stream.Close ();
|
||||
input_stream = null;
|
||||
}
|
||||
|
||||
if (output_stream != null) {
|
||||
output_stream.Close();
|
||||
if (!output_stream_exposed)
|
||||
output_stream.Close ();
|
||||
output_stream = null;
|
||||
}
|
||||
|
||||
if (error_stream != null) {
|
||||
error_stream.Close();
|
||||
if (!error_stream_exposed)
|
||||
error_stream.Close ();
|
||||
error_stream = null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user