F$Exit

From NitrOS-9
Revision as of 15:23, 5 April 2014 by Glaw16 (Talk | contribs) (Created page with '<div align="left"> {| |- valign="top" | '''Exit''' | rowspan="2" | '''Terminates the calling process''' |- valign="top" | '''OS9 F$Exit 103F 06''' |} </div> '''Entry Conditions'…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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