Synopsis
void OMprocess_exit (
OMproc_id process_id, int exit_status );
Description
This routine causes the process specified to exit when it has finished the operation that it is currently executing. If it is called with the constant OMlocal_proc_id, it causes the current process to exit but waits until the main event loop is reached. In other words, this routine returns if it is asked to exit the local process but will cause this process to exit when the event handler that triggered this operation returns.
Arguments
process_id
The process id of the process that should be asked to exit. The main process always has a process_id of 0. You can get the process id of any object using the OMobj_proc macro. The process id of the current process is stored in the global variable OMlocal_proc_id.
exit_status
Specifies the exit status code for the process to exit.
See also