Back to index

glibc  2.9
Functions
_exit.c File Reference
#include <unistd.h>
#include <hurd.h>
#include <hurd/port.h>
#include <sysdep.h>
#include <sys/wait.h>

Go to the source code of this file.

Functions

void _hurd_exit (int status)
void _exit (int status)

Function Documentation

void _exit ( int  status)

Definition at line 50 of file _exit.c.

{
  _hurd_exit (W_EXITCODE (status, 0));
}

Here is the call graph for this function:

void _hurd_exit ( int  status)

Definition at line 26 of file _exit.c.

{
  /* Give the proc server our exit status.  */
  __USEPORT (PROC, __proc_mark_exit (port, status, 0));

  /* Commit suicide.  */
  __task_terminate (__mach_task_self ());

  /* Perhaps the cached mach_task_self was bogus.  */
  __task_terminate ((__mach_task_self) ());

  /* This sucker really doesn't want to die.  */
  while (1)
    {
#ifdef LOSE
      LOSE;
#else
      volatile const int zero = 0, one = 1;
      volatile int lossage = one / zero;
#endif
    }
}

Here is the call graph for this function:

Here is the caller graph for this function: