Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (t) tdm_fork(2)
Use From the Guardian Environment
If called from a Guardian process, the actions of this function are undefined and errno is set to
[ENOTOSS].
OSS Attributes
The child process inherits the following OSS attributes from the parent process:
• Environment
• Close-on-exec flags
• Signal-handling settings
• Saved-set-user-ID mode bit
• Saved-set-group-ID mode bit
• Process group ID
• Current directory
• Root directory
• File mode creation mask
• File size limit (see the ulimit(2) reference page)
• Attached semaphore set IDs
• Attached shared memory segments
The OSS attributes of the child process differ from those of the parent process in the following
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.
• The child process has its own copy of the parent process’s file descriptors. However,
each of the child’s file descriptors shares a common file pointer with the corresponding
file descriptor of the parent process.
• The child process does not inherit any file open created by a Guardian function or pro-
cedure call.
• The child process does not inherit file locks.
• The child process’s tms_utime, tms_stime, tms_cutime, and tms_cstime values are set
to 0 (zero).
• Any pending alarms are cleared in the child process.
• Any signals pending for the parent process are not inherited by the child process.
• Any adjust-on-exit (semadj) values of the parent process are not inherited by the child
process.
527186-023 Hewlett-Packard Company 8−33