Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.fork Method

fork() turns a single process into 2 identical processes, known as the parent and the child. [Edit]

public static int fork ()

See Also

Mono.Unix.Native.Syscall.fork

Returns

a int [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.fork instead.

On success, fork() returns 0 to the child process and returns the process ID of the child process to the parent process. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set.

[Edit]

Requirements

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