Back to index

glibc  2.9
Functions
wait.c File Reference
#include <sys/wait.h>
#include <errno.h>
#include <sys/resource.h>
#include <stddef.h>
#include <sysdep-cancel.h>

Go to the source code of this file.

Functions

pid_t __libc_wait (__WAIT_STATUS_DEFN stat_loc)

Function Documentation

Definition at line 28 of file wait.c.

{
  if (SINGLE_THREAD_P)
    return INLINE_SYSCALL (wait4, 4, WAIT_ANY, stat_loc, 0,
                        (struct rusage *) NULL);

  int oldtype = LIBC_CANCEL_ASYNC ();

  pid_t result = INLINE_SYSCALL (wait4, 4, WAIT_ANY, stat_loc, 0,
                             (struct rusage *) NULL);

  LIBC_CANCEL_RESET (oldtype);

  return result;
}