NAME
ppoossiixxssppaawwnnaattttrrsseettssiiggddeeffaauulltt ppoossiixxssppaawwnnaattttrrggeettssiiggddeeffaauulltt - set or get
the spawn-sigdefault attribute on a posixspawnattrt
SYNOPSIS
##iinncclluuddee <
int ppoossiixxssppaawwnnaattttrrsseettssiiggddeeffaauulltt(posixspawnattrt *restrict attr, const sigsett *restrict sigdefault); int ppoossiixxssppaawwnnaattttrrggeettssiiggddeeffaauulltt(const posixspawnattrt *restrict attr, sigsett *restrict sigdefault);> DESCRIPTION
The ppoossiixxssppaawwnnaattttrrsseettssiiggddeeffaauulltt() function sets the sigdefault on the attributes object referenced by attr. The ppoossiixxssppaawwnnaattttrrggeettssiiggddeeffaauulltt() function retrieves the sigdefault on the attributes object referenced by attr. The argument sigdefault is the set of signals to be returned to default behaviour in the new process on creation if the POSIXSPAWNSETSIGDEF flag is set in the posixspawnattrt. It's default value must be set via a call to posixspawnattrsetflags(3) or the behaviour is undefined.RETURN VALUES
On success, these functions return 0; on failure they return an error number from. Additionally, if successful, ppoossiixxssppaawwnnaattttrrggeettssiiggddeeffaauulltt() will modify the contents of the sigdefault parameter with the current attribute value. EERRRROORRSS These functions may fail if: [EINVAL] The value specified by attr is invalid. [EINVAL] The value of attr is invalid. SEE ALSO
posixspawn(2), posixspawnp(2), posixspawnattrinit(3), posixspawnattrdestroy(3), posixspawnattrsetflags(3) STANDARDS Version 3 of the Single UNIX Specification (``SUSv3'') [SPN] HISTORY The ppoossiixxssppaawwnnaattttrrsseettssiiggddeeffaauulltt() and ppoossiixxssppaawwnnaattttrrggeettssiiggddeeffaauulltt() function calls appeared in Version 3 of the Single UNIX Specification (``SUSv3'') [SPN]. Mac OS X August 22, 2007 Mac OS X