Back to index

glibc  2.9
Functions
get_child_max.c File Reference
#include <limits.h>
#include <sys/sysinfo.h>
#include <sys/resource.h>

Go to the source code of this file.

Functions

long int __get_child_max (void)

Function Documentation

long int __get_child_max ( void  )

Definition at line 26 of file get_child_max.c.

{
# ifdef RLIMIT_NPROC
  struct rlimit limit;
  if (__getrlimit (RLIMIT_NPROC, &limit) == 0
      && limit.rlim_cur != RLIM_INFINITY)
    return limit.rlim_cur;
# endif

  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function: