Name

_exit - terminate the curent process

Library

libc.lib

Synopsis

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

Return values

The _exit system call can never return.

Detailed description

The _exit system call terminates a process with the following consequences:

As the function _exit terminates the calling process instantly, the value status is returned as the process’ exit status to it’s parent process. Most C programs call the library routine exit, which flushes buffers, closes streams, unlinks temporary files, etc., before calling _exit.


Examples

#include <unistd.h>
 
int main( void )
{
   _exit( 1 );
   return 0;
}

         

Errors

No errors are defined.

Limitations

The signal related functionalities are not applicable to the symbian implementation as there is no support for signals from symbian.

See also

wait, exit

Feedback

For additional information or queries on this page send feedback

© 2005-2007 Nokia

Top