SYNOPSIS
#include <spawn.h>
int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict attr, pid_t *restrict pgroup);
int posix_spawnattr_setpgroup(posix_spawnattr_t *attr, pid_t pgroup);
DESCRIPTION
The
The
The spawn-pgroup attribute of a spawn attributes object indicates the process group that a new process image is to join when created by a spawn operation (if POSIX_SPAWN_SETGROUP is set in the spawn-flags attribute). By default, this attribute has a value of 0.
PARAMETERS
- attr
-
Points to a spawn attributes object.
- pgroup
-
Points to the value retrieved by
posix_spawnattr_getpgroup() or to the value to be assigned to the spawn-pgroup attribute byposix_spawnattr_setpgroup() .
RETURN VALUES
On success,
Otherwise, one of the following error numbers is returned:
CONFORMANCE
UNIX 03.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
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
SEE ALSO
- Functions:
posix_spawn() ,posix_spawnattr_destroy() ,posix_spawnattr_getflags() ,posix_spawnattr_getschedparam() ,posix_spawnattr_getschedpolicy() ,posix_spawnattr_getsigdefault() ,posix_spawnattr_getsigmask() ,posix_spawnattr_init() ,posix_spawnattr_setflags() ,posix_spawnattr_setschedparam() ,posix_spawnattr_setschedpolicy() ,posix_spawnattr_setsigdefault() ,posix_spawnattr_setsigmask() ,posix_spawnp()
- Miscellaneous:
- spawn
PTC MKS Toolkit 10.5 Documentation Build 40.