Back to index

glibc  2.9
Defines | Functions
tst-exit2.c File Reference
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static void * tf (void *arg)
static int do_test (void)

Define Documentation


Definition at line 38 of file tst-exit2.c.

#define TEST_FUNCTION   do_test ()

Definition at line 39 of file tst-exit2.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 20 of file tst-exit2.c.

  pthread_t th;

  int e = pthread_create (&th, NULL, tf, NULL);
  if (e != 0)
      printf ("create failed: %s\n", strerror (e));
      return 1;

  /* Terminate only this thread.  */
  pthread_exit (NULL);

  return 1;

Here is the call graph for this function:

static void* tf ( void *  arg) [static]

Definition at line 9 of file tst-exit2.c.

  while (1)
    sleep (100);

  return NULL;

Here is the call graph for this function: