fork

[procedure] fork

Scheme48: calls fork() and returns child process id to the parent, and #f to the child. See also fork-and-forget. Note: Scheme48's process id is a structure, not just an integer pid. See also process-id?, process-id=?, process-id->integer, integer->process-id.

See also Concept:Process

This is called process-fork, posix-fork?, sys-fork? on some implementations.

[procedure] fork [thunk]

STklos: without thunk, it works like fork(2), except that the return value is a process object of the child process (for parent process) or #f (for child process). If thunk is given, child process executes it and exits; the parent process gets a process object of the child process. See also run-process.