Guardian Programmer's Guide

Table Of Contents
Creating and Managing Processes
Guardian Programmer’s Guide 421922-014
16 - 39
Sending and Receiving the Startup Message
8. Close the new process.
Sending and Receiving the Startup Message
The following example shows two processes. The first process creates the second
process and then sends it the Startup message.
The first program is an extension of the program shown in Section 8, Communicating
With a TACL Process, that receives the Startup message. This example first reads its
own Startup message by calling INITIALIZER. The INITIALIZER procedure then calls
the START^PROC procedure, which processes the Startup message and returns an
array containing the open file number of the IN file, the open file number of the OUT
file, the length of the Startup message, and the Startup message itself.
After returning from the INITIALIZER procedure, the first program creates the second
process, opens the second process, and then sends a Startup message to the second
process. In this case, the second process receives the same Startup message as the
first process.
The code for the first process appears on the following pages.