getpid(2)

DESCRIPTION

return the calling process ID.

SYNOPSIS

long getpid(void);

RETURN VALUE

  • The calling process ID.