Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (t) tdm_execvep(2)
Open Files
File descriptors open in the calling process image remain open in the new process image, except
for those:
• Whose close-on-exec flag FD_CLOEXEC is set (see the fcntl(2) reference page)
• Opened using a Guardian function or procedure call
For a G-series TNS process image or an accelerated processs image only, if the process file seg-
ment (PFS) of the new process image is smaller than the process file segment of the calling pro-
cess image and if the calling process image has a large number of file descriptors open, the sys-
tem might not be able to propagate all the open file descriptors to the new process image. When
this situation occurs, the function call fails, and errno is set to the value of [EMFILE].
For those file descriptors that remain open, all attributes of the open file descriptor, including file
locks, remain unchanged. All directory streams are closed.
Open Pipes and FIFOs
A pipe or FIFO associated with an open file descriptor in the calling process remains connected
in the new process. If the new process runs in a different processor than the calling process, the
processor that runs the new process must also be running an OSS pipe server process.
If no OSS pipe server process is running in the new processor, the new process cannot use the
pipe or FIFO; calls specifying the file descriptor for the pipe or FIFO fail with errno set to
[EWRONGID]. The new process can only close the invalid file descriptor.
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_execvep() function. See the shmat(2) reference page for additional information about
shared memory segment use.
Semaphores
Semaphore set IDs attached to the 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_execvep() 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.
527186-003 Hewlett-Packard Company 8−19