Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 1.65 KB

spawn-constants.md

File metadata and controls

38 lines (34 loc) · 1.65 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
spawn Constants | Microsoft Docs
11/04/2016
cpp-standard-libraries
article
_P_NOWAIT
_P_OVERLAY
_P_WAIT
_P_DETACH
_P_NOWAITO
C++
_P_OVERLAY constant
P_DETACH constant
P_OVERLAY constant
P_NOWAIT constant
_P_DETACH constant
_P_NOWAIT constant
_P_NOWAITO constant
P_NOWAITO constant
spawn constants
P_WAIT constant
_P_WAIT constant
e0533e88-d362-46fc-b53c-5f193226d879
8
corob-msft
corob
ghogen

spawn Constants

Syntax

#include <process.h>  

Remarks

The mode argument determines the action taken by the calling process before and during a spawn operation. The following values for mode are possible:

Constant Meaning
_P_OVERLAY Overlays calling process with new process, destroying calling process (same effect as _exec calls).
_P_WAIT Suspends calling thread until execution of new process is complete (synchronous _spawn).
_P_NOWAIT, _P_NOWAITO Continues to execute calling process concurrently with new process (asynchronous _spawn).
_P_DETACH Continues to execute calling process; new process is run in background with no access to console or keyboard. Calls to _cwait against new process will fail. This is an asynchronous _spawn.

See Also

_spawn, _wspawn Functions
Global Constants