Method Process.TraceProcess()->wait() Method wait int wait() Description Waits for the process to stop. Returns (0..)The exit code of the process. -1The process was killed by a signal. -2The process has stopped. See also create_process::wait()