The calling process is already a process group leader, or the process group ID of a process that is not the calling process matches the process ID of the calling process.
In Win32, detaching from controlling terminal means the following:
- If there are no other processes using the console window (for example, an invoking shell, or a previously-invoked child), the console window is closed.
- Any children created after the call to
setsid()is created without a console window attached.
The returned process group ID is the Win32 process ID of the process group leader. Refer to Windows Concepts in the PTC MKS Toolkit UNIX to Windows Porting Guide for more information about process IDs.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
execl(), execle(), execlp(), execv(), execve(), execvp(), fork(), getpgid(), getpid(), getsid(), setpgid(), setpgrp()
PTC MKS Toolkit 10.3 Documentation Build 39.