* Process.cs: Avoid closing the duplicated process handle in
ProcessWaitHandle, it is done automatically by the WaitHandle.Dispose ().
Fixes#464628.
svn path=/trunk/mcs/; revision=123738
2008-12-25 Miguel de Icaza <[email protected]>
* ProcessTest.cs: Created a test case from bug 459450.
2008-12-25 Leszek Ciesielski <[email protected]>
* System.Diagnostics/Process.cs: Raise the
Process.OutputDataReceived and Process.ErrorDataReceived with null
arguments at the end. This is the documented behavior:
http://msdn.microsoft.com/en-us/library/system.diagnostics.datareceivedeventargs.data.aspx
And CruiseControl.NET depended on this. Bug #459450.
* Microsoft.CSharp/CSharpCodeCompiler.cs: Fix the code, as it
depened on the previous broken behavior.
svn path=/trunk/mcs/; revision=122125
* process.h : Adding method declaration for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* process.c : Adding implementation for
ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* icall-def.h : Registering ICALL Processs.WaitForInputIdle_internal
to ves_icall_System_Diagnostics_Process_WaitForInputIdle_internal.
* wait.h : Adding method declaration for WaitForInputIdle.
* wait.c : Adding implementation for WaitForInputIdle.
* Process.cs : Adding an implementation for WaitForInputIdle
to call the an internal call. The internal call is only
implemented properly on Windows.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=118724
* Socket.cs : Adding a comment to provide locations where
changes to MonoSocketAsyncResult need to be synced.
* Process.cs : Update the fields of ProcessAsyncReader to
match MonoSocketAsyncResult metadata/socket-io.h
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=112681
* Process.cs: When passing handle references around, it needs to
be duplicated and freed so the OS doesn't close it. Makes the
testcase in 410743 work again now the underlying bug has been
fixed.
svn path=/trunk/mcs/; revision=109048
2008-06-21 Robert Jordan <[email protected]>
* Process.cs (Start_common): UserName may be null or empty.
Fixes bug #350543.
In Test/System.Diagnostics:
2008-06-21 Robert Jordan <[email protected]>
* ProcessTest.cs (Start_UseShellExecuteWithEmptyUserName):
add test for bug #350543.
svn path=/trunk/mcs/; revision=106452
* Process.cs: Match the buffer sizes of StreamWriter and
MonoSyncFileStream for redirected stdout and stderr. Fixes bug
401225.
svn path=/trunk/mcs/; revision=106217
valid and remove LAMESPEC since the documentation has been corrected
for .NET 3.5. Code formatting.
* ProcessTest.cs: Added tests for PriorityClass.
svn path=/trunk/mcs/; revision=91804
* Process.cs: Check that the process has been started before
getting or setting the priority class. Fixes bug 348415.
2007-12-19 Dick Porter <[email protected]>
* Win32Exception.cs: Add text for error 5, Access denied.
svn path=/trunk/mcs/; revision=91629
value is set to null, instead of ArgumentException. Remove check if
file name is rooted and exists when UseShellExecute is false, and let
runtime handle this. Fixes bug #345565. When a process cannot be started, do
not access ProcessStartInfo.EnvironmentVariables since that would not allow us
to re-use the instance when changing UseShellExecute. Added argument check in
Start (ProcessStartInfo). Code formatting.
* ProcessTest.cs: Added tests for Start overloads.
svn path=/trunk/mcs/; revision=90693
2007-10-30 Robert Jordan <[email protected]>
* ProcessTest.cs: Add tests for bug #319829.
In System.Diagnostics:
2007-10-30 Robert Jordan <[email protected]>
* Process.cs: Wrap the redirected streams with a stream
that provides real async Begin/Read|Write operations.
Fixes bug #319829.
In System.IO:
2007-10-30 Robert Jordan <[email protected]>
* MonoSyncFileStream.cs: Add.
svn path=/trunk/mcs/; revision=88491
* Process.cs: eliminate the console encoding logic which was
duplicated from System.Console and just use Console.Out.Encoding
(bug #328162).
svn path=/trunk/mcs/; revision=86341
* EventLog.cs, EventLogImpl.cs, LocalFileEventLog.cs, NullEventLog.cs,
Win32EventLog.cs : added missing members, will be left unsupported
in non-Win32 impl and left unimplemented in Win32.
* CounterCreationDataCollection.cs : in 2.0 OnValidate() is overriden
instad of OnInsert().
* Process.cs : removed StandardErrorEncoding and
StandardOutputEncoding. They do not exist anymore.
svn path=/trunk/mcs/; revision=85336
* Process.cs, ProcessStartInfo.cs : user info support (on windows).
Removed encoding_stderr, encoding_stdout which are not needed and
do not match icall.
svn path=/trunk/mcs/; revision=85209
* Process.cs: use the default encoding or the windows input/output
encodings for the process input/output/error streams. Bug #80838 fixed.
svn path=/trunk/mcs/; revision=82618
* Process.cs: Allow GetProcesses and GetProcessById overloads with
machine name to work for local machine.
* System_test.dll.sources: Added ProcessTest.cs.
svn path=/trunk/mcs/; revision=70366
* Process.cs: the Process returned by the static Start method never had
the right ProcessStartInfo. Fixes bug #80019.
svn path=/trunk/mcs/; revision=68543
* Process.cs: fix operation number to be 8. The other one was working
because the default is to wait for input on the file descriptor.
svn path=/trunk/mcs/; revision=65248
* mcs/class/System/System.Diagnostics/Process.cs: add support for 2.0
asynchronous reads on stdout and stderr.
* mono/mono/metadata/threadpool.c: treat pipes from process
asynchronous reads as sockets when reading from them, so we get
select/poll or epoll to wait for data.
svn path=/trunk/mcs/; revision=63565
* EventLogEntry.cs: Add a linkdemand for unrestricted on class.
* EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
* FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
an imperative demand for FileIOPermission.Read on GetVersionInfo
method. Change ToString method to use a StringBuilder.
* PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
class.
* PerformanceCounterManager.cs: Add a linkdemand for unrestricted on
class. Add [Obsolete] for NET_2_0 profile.
* Process.cs: Add a linkdemand and an inheritancedemand for
unrestricted on class.
* ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.
svn path=/trunk/mcs/; revision=63179
* System.dll.sources: added DataReceivedEventArgs.cs and
DataReceivedEventHandler.cs.
* System_test.dll.sources : added StopwatchTest.cs.
* Stopwatch.cs:
Zoltan was quicker to add it, here I put my implementation ;-)
* Process.cs :
Added some missing long members (not implemented anyways).
* DataReceivedEventHandler.cs DataReceivedEventArgs.cs :
added new 2.0 types.
* StopwatchTest.cs : new test.
svn path=/trunk/mcs/; revision=58989
* Process.cs: Split Start_common into Start_shell and
Start_noshell, which call ShellExecuteEx and CreateProcess
respectively. Fixes bug 76670.
2005-11-17 Dick Porter <[email protected]>
* Environment.cs: Incremented corlib version
svn path=/trunk/mcs/; revision=53199
* Process.cs: deal with the fact that someone can enable raising events
and/or registed a Exited delegate before and *after* Start is called for
the process. Only queue the exit callback in the threadpool when it's
possible and requested. Fixes bug #76129.
svn path=/trunk/mcs/; revision=50356
* ICollectData.cs: Added marshalling attribute to match MS.NET.
* PerformanceCounter.cs: Fixed Designer attribute to match MS.NET.
* Process.cs: Fixed Designer attribute to match MS.NET, modified
* ProcessModule.cs: Fixed Designer attribute to match MS.NET.
* ProcessThread.cs: Fixed Designer attribute to match MS.NET.
DesignerSerializationVisibility on StartInfo to match MS.NET, changed
Category attribute on Exited event to match MS.NET.
svn path=/trunk/mcs/; revision=48151