F$Exit
From NitrOS-9
Exit | Terminates the calling process |
OS9 F$Exit 103F 06 |
Entry Conditions
B status code to return to the parent process
Exit Conditions
The process is terminated.
Additional Information
- The Exit system call is the only way a process can terminate itself. Exit deallocates the process’s data memory area and unlinks the process’s primary module. It also closes all open paths automatically.
- The Wait system call always returns to the parent the status code passed by the child in its Exit call. Therefore, if the parent executes a Wait and receives the status code, it knows the child has died.
- Exit unlinks only the primary module. Unlink any module that is loaded or linked to by the process before calling Exit.
krnp2