Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
spawn... Constants
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Constant: P_OVERLAY, P_NOWAIT, P_NOWAITO, P_WAIT, P_DETACH
Include: <process.h>
Context: spawn family of functions
Synopsis: The <modeflag> argument determines the action taken by the
parent process before and during spawn.
The following values for <modeflag> are possible:
Constant Meaning
P_OVERLAY Overlays parent process with child, destroying the
parent (same effect as exec calls).
P_NOWAIT Continues to execute parent process concurrently
with child process (asynchronous spawn──valid only
in protected mode).
P_NOWAITO Continues to execute parent process and ignores wait
and cwait calls against child process (asynchronous
spawn──valid only in protected mode).
P_WAIT Suspends parent process until execution of child
process is complete (synchronous spawn).
P_DETACH Continues to execute parent process concurrently
with child process. Child process is detached from
parent's process hierarchy; if parent process is
terminated, the child process continues to run
(asynchronous spawn──valid in protected mode only).