-
Notifications
You must be signed in to change notification settings - Fork 7
process detach
Alairion edited this page May 8, 2021
·
6 revisions
nes::process::detach
(1) void detach();- Permits the process to run independently from the process object. After a call to
detach, the process object no longer represents a valid process.
Note: on Posix systems, if the parent process ends before the detached child, the child becomes an orphan process. If the parent process ends after the detached child, the child becomes a zombie process until the parent ends.
None.
- None.
-
joinable()returnstrue.
-
joinable()returnsfalse.
- May throw a
std::runtime_errorif the process can not be detached.
- On Windows, closes the handles
On Posix systems, just "forget" the child's id.