include "sys.m"; sys:= load Sys Sys->PATH; pctl: fn(flags: int, movefd: list of ref FD): int;
The set of processes sharing a property are called a group; for example the set of processes sharing a name space are called a name space group. Each process is a member of a process group, typically the set of threads functioning as a single program. All the members of a process group may be terminated at once using the "killgrp" control message in the prog device.
A call to pctl affects the calling process and, indirectly according to flags, any other processes sharing properties with it. The flags to pctl are:
The return value of pctl is the numerical process id of the calling process, which can be used for example to access its prog files.
Note
Programs run synchronously from the shell share its file name space, so programs like bind and mount and cd can affect the shell's environment. Programs that need a private space should call this system call with the FORKNS option. See Also
Limbo System Modules and sh