Mono Class Library: Mono.Unix.UnixProcess Overview | Members

Mono.Unix.UnixProcess.HasExited Property

Determines whether the process has exited.

public bool HasExited { get; }

See Also

Mono.Unix.Native.Syscall.WIFEXITED

Value

true if the process has exited; otherwise, false.

Exceptions

TypeReason
Mono.Unix.UnixIOException

The calling process has no existing unwaited-for child processes. [Mono.Unix.Native.Errno.ECHILD]

-or-

No status from the terminated child process is available because the calling process has asked the system to discard such status by ignoring the signal Mono.Unix.Native.TODO.SIGCHLD or setting the flag Mono.Unix.Native.TODO.SA_NOCLDWAIT for that signal. [Mono.Unix.Native.Errno.ECHILD]

-or-

The call was interrupted by a caught signal, or the signal did not have the Mono.Unix.Native.TODO.SA_RESTART flag set. [Mono.Unix.Native.Errno.EINTR]

Remarks

If the process has exited, UnixProcess.ExitCode contains the process' exit code.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0