PROCEDURE Spawn(Task:Rad56; EFN:Event_Flag; CmdLin:Address; CmdLen:Integer; VAR Status:SPAWN_Status_array); EXTERNAL; { will spawn task TASK (which must be in RAD50 format), which will take the TI: and UIC of the parent. TASK must be installed. EFN will be cleared on directive acceptance, and set when the offspring task exits. CMDLIN may be any character array (or record) up to 72. bytes in length. CMDLEN is the length of the command line. IF CMDLEN=0, no command line will be queued to the offspring task, else the contents of CMDLIN will be available to the offspring (see MCR COMMAND LINE section of the OMSI PASCAL USERS GUIDE for how to get the command line). STATUS must be an array, although only the first word is currently used. This word holds the offspring task exit status. Non-standard types are defined in ex:[22,320]SPAWN.TYP. Directive status (of the SPAWN directive, not the offspring) is available in $DSW upon return. NOTE: The variable STATUS MUST remain defined until the offspring task exits. Thus, for safety, it should probably be declared as a global variable in the parent task. }