posix_spawnattr_getsigdefault(), posix_spawnattr_setsigdefault()

get and set the spawn-sigdefault attribute of a spawn attributes object 

Advanced Realtime Function


SYNOPSIS

#include <signal.h>

#include <spawn.h>

int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict attr, sigset_t *restrict sigdefault);

int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict attr, const sigset_t *restrict sigdefault);


DESCRIPTION

The posix_spawnattr_getsigdefault() function retrieves the value of the spawn-sigdefault attribute from the attr spawn attributes object. The retrieved value is stored in the object pointed to by sigdefault.

The posix_spawnattr_setsigdefault() function sets the spawn-sigdefault attribute in an initialized attributes object pointed to by attr. The sigdefault argument points to the value used for setting the attribute.

The spawn-sigdefault attribute indicates the set of signals to be forced to default signal handling in a new process image created by a spawn operation (when POSIX_SPAWN_SETSIGDEF is set in the spawn-flags attribute). The default value of the spawn-sigdefault attribute is an empty signal set.


PARAMETERS

attr 

Points to a spawn attributes object.

sigdefault 

Points to the value retrieved by posix_spawnattr_getsigdefault() or to the value to be assigned to the spawn-sigdefault attribute by posix_spawnattr_setsigdefault().


RETURN VALUES

On success, posix_spawnattr_getsigdefault() and posix_spawnattr_setsigdefault() return 0. Additionally, posix_spawnattr_getsigdefault() places the value retrieved from the spawn-sigdefault attribute of the attr spawn attributes object in the object pointed to by sigdefault.

Otherwise, one of the following error numbers is returned:

EINVAL 

The attr or sigdefault arguments contains an invalid value.


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_getpgroup(), posix_spawnattr_getschedparam(), posix_spawnattr_getschedpolicy(), posix_spawnattr_getsigmask(), posix_spawnattr_init(), posix_spawnattr_setflags(), posix_spawnattr_setpgroup(), posix_spawnattr_setschedparam(), posix_spawnattr_setschedpolicy(), posix_spawnattr_setsigmask(), posix_spawnp()

Miscellaneous:
signal, spawn


PTC MKS Toolkit 10.5 Documentation Build 40.