Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (t) tdm_spawnp(2)
• Signals pending in the parent process are disregarded by the child process.
The inheritance structure can modify the default signal information as follows:
• If the SPAWN_SETSIGMASK bit is set in
inherit->flags, inherit->sigmask contains the signal mask for the child process.
• If the SPAWN_SETSIGDEF bit is set in
inherit->flags, inherit->sigdefault specifies the signal set that is forced to the default
action in the child process. Additional signals that are set to the default action in the
parent process, or for which the parent process has a signal-catching function installed,
are also set to the default action in the child process.
Process Group
By default, the child process is a member of the same process group as the parent. However, the
new process can be designated a member of some other process group by setting the
SPAWN_SETPGROUP bit in inherit->flags. The inherit->pgroup field specifies the process
group number, or it contains the SPAWN_NEWPGROUP symbolic constant if the new process
is to be the leader of a new process group.
User ID and Group ID
If the set-user-ID mode bit (S_ISUID) of the new process image file is set (see the chmod(2)
reference page), the effective user ID of the new process image is set to the user ID of the owner
of the new process image file. Similarly, if the set-group-ID mode bit (S_ISGID) of the new pro-
cess image file is set, the effective group ID of the new process image is set to the group ID of the
new process image file. The real user ID, real group ID, and supplementary group IDs of the new
process image remain the same as those of the calling process image. The effective user ID and
effective group ID of the new process image are saved (as the saved-set user ID and the saved-set
group ID) for use by the setuid() function.
OSS Attributes
These OSS attributes of the calling process image are unchanged after successful completion of
the tdm_spawnp( ) function:
• Real user ID
• Real group ID
• Session membership
• Current working directory
• Root directory
• File mode creation mask (see the umask(2) reference page)
• File size limit (see the ulimit(2) reference page)
The OSS attributes of the child process differ from those of the parent process in these ways:
• The child process has a unique OSS process ID (PID) and does not match any active pro-
cess group ID.
• The parent process ID of the child process matches the OSS process ID of the parent.
527186-023 Hewlett-Packard Company 8−65