getpid function

int getpid()

Get the process ID of the calling process.

Implementation

int getpid() {
  _getpid ??=
      Libc().dylib.lookupFunction<ffi.Int32 Function(), _dart_getpid>('getpid');
  return _getpid!();
}