TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-267
#NEWPROCESS Built-In Function
•
If TACL waits for completion of the created process, #NEWPROCESS returns a
termination status, a space, and the process identifier of the created process. The
termination status is one of these:
•
If TACL is awakened by a WAKE message (code 20) while waiting for completion
of the created process, #NEWPROCESS returns WAKE.
•
If you press the BREAK key while #NEWPROCESS is waiting, it returns nothing.
Considerations
These conditions apply to the use of the #NEWPROCESS built-in function:
•
When a process terminates, the operating system sends TACL a process deletion
message that contains completion information. TACL places that information in the
variables :_COMPLETION (C-series format) and :_COMPLETION^PROCDEATH
(D-series format), if those variables exist. (For additional information about
completion codes, see Section 5, Statements and Programs.)
•
When running a process that is to communicate with TACL (such as by setting IN
or OUT to the TACL process name, or by using TACL variables in INV or OUTV, or
by using the INLINE feature), be careful to coordinate TACL functions that enable
the communication (such as #IN or #OUT) with the counterpart mechanisms in that
process. Deadlock conditions can result if TACL tries to open a process for
communication at the same time that process is trying to open TACL for
communication.
•
In NOWAIT mode, TACL does not wait for the process to finish, but prompts the
terminal for the next command immediately. TACL accesses the terminal in
conversational mode. Some processes, such as TEDIT, access the terminal in
page mode. Two processes cannot share a terminal when one uses conversational
mode and the other uses page mode.
•
TACL allows IN and OUT files to be DEFINE names, and passes them to the
process being executed. The process is responsible for handling the DEFINEs.
•
TACL allows TERM names to be DEFINE names, and passes them to the process
being executed.
•
If you start a TACL process with HIGHPIN OFF, any processes started by that
TACL process run at a low PIN by default.
•
The #NEWPROCESS built-in function returns the node name only if the process
was started on a remote node.
STOP The process ended normally.
ABEND The process ended abnormally (as the result of an error trap, for
example).
CPU The process was deleted because of a CPU failure.
NET The process was deleted because of a network failure.