Name
_exit - terminate the curent process
Library
libc.lib
Synopsis
Return values
The
_exit
system call can never return.
Detailed description
The
_exit
system call terminates a process with the following consequences:
- All of the descriptors open in the calling process are closed.
This may entail delays, for example, waiting for output to drain;
a process in this state may not be killed, as it is already dying.
- If the parent process of the calling process has an outstanding
wait
call, it is notified of the calling process’s termination and the
status
is set as defined by
wait.
- The parent process-ID of all of the calling process’s existing child processes are set to 1; the initialization process inherits
each of these processes
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
|
|