_exit

Terminates the NLM without executing atexit functions or flushing buffers.

Library:LibC
Classification:POSIX
Service:General C Services

Syntax

  #include <unistd.h> 
   
  void _exit (
     int   status); 
  

Parameters

status

(IN) Specifies the return code of the NLM.

Remarks

The _exit function causes a normal termination consisting of the following sequence of events:

  • Cleanup code registered with the NXVmRegisterExitHandler function is called.

  • All threads in the NLM are destroyed.

  • All libraries that the NLM has used as a client are notified of the shutdown via the register library cleanup routines.

  • All other resources allocated by the NLM are freed.

  • The NLM is unloaded.

See Also