Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (t) tdm_execve(2)
Existing Sockets
A socket associated with an open file descriptor in the calling process remains connected in the
new process when the new process runs in the same processor as the calling process.
When the new process runs in a different processor than the calling process, the processor that
runs the new process must also be running a socket transport agent process. If no socket tran-
sport agent process is running in the new processor, the new process cannot use the socket; calls
specifying the file descriptor for the socket fail with errno set to [EWRONGID]. The new pro-
cess can only close the invalid file descriptor.
Shared Memory
Any attached shared memory segments are detached from the new process by a successful call to
the tdm_execve() function. See the shmat(2) reference page for additional information about
shared memory segment use.
Semaphores
Semaphore set IDs attached to a calling process are also attached to the new process if the new
process executes in the same processor as the calling process. The new process also inherits the
adjust-on-exit (semadj) values of the calling process if both processes are in the same processor.
A semaphore set cannot be shared when a semadj value exists for the calling process and the
new process is created in a different processor. When that condition exists, a call to the
tdm_execve() function fails, and errno is set to [EHLDSEM].
See the semget(2) reference page for additional information about semaphore use.
Signals
Signals set to:
The default action (SIG_DFL) in the calling process image are set to the default action
in the new process image.
Be ignored (SIG_IGN) by the calling process image are set to be ignored by the new
process image.
Cause abnormal termination (SIG_ABORT) in the calling process image are set to that
action in the new process image.
Cause entry into the debugger (SIG_DEBUG) in the calling process image are set to that
action in the new process image.
Be caught by the calling process image are set to the default action in the new process
image.
See the signal(4) reference page either online or in the Open System Services System Calls Refer-
ence Manual.
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.
527186-023 Hewlett-Packard Company 85