When a process terminates, the jomRegisterTerminationCallBack call, shown in the following example, cleans up or de-allocates operating system resources that have been allocated.
int jomRegisterTerminationCallBack(const DskHandle *pHandle, const JadeTerminationCallBack cb, const void *pParam, TerminationCallBackType callBackType, LineNumber lineNo)
The parameters for this call are described in the following subsections.