getppid function

int getppid()

Get the process ID of the calling process's parent.

Implementation

int getppid() {
  _getppid ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(), _dart_getppid>('getppid');
  return _getppid!();
}