RtProcess.WaitForExit Method

Waits for the associated real-time process to terminate. After this API returns, property ExitCode is not guaranteed to contain the exit code of the real-time process. To get the exit code, use one of the WaitForExitCode overloads. It is not sufficient to call RtProcess.WaitForExit and then read property ExitCode.

Overload List

  Name Description

Public method

WaitForExit

Instructs the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess object to wait indefinitely for the associated process to exit.

Public method

WaitForExit (Int32)

Instructs the IntervalZero.MaxRT.wRTOS.RtApi.Diagnostics.RtProcess object to wait the specified number of milliseconds for the associated process to exit.

Note: The Int32 timeout value passed to all RtProcess.WaitXxx APIs can be the value System.Threading.Timeout.Infinite to mean the API should wait indefinitely.

See Also: