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

Mono.Unix.UnixEnvironment.SetProcessGroup Method

Set the process group of the current process.

public static void SetProcessGroup ()

See Also

UnixProcess.ProcessGroupId
Mono.Unix.Native.Syscall.setpgrp

Exceptions

TypeReason
InvalidOperationException The target process is a session leader. [Mono.Unix.Native.Errno.EPERM]
Mono.Unix.UnixIOException

The target process is not the calling process or a child of the calling process. [Mono.Unix.Native.Errno.ESRCH]

-or-

The requested process is a child of the calling process, but it has performed an Mono.Unix.Native.Syscall.exec(3) operation. [Mono.Unix.Native.Errno.EACCES]

Remarks

If the affected process is not the invoking process, then it must be a child of the invoking process, and both processes must be in the same session.

Requirements

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