getpgrp function

int getpgrp()

Get the process group ID of the calling process.

Implementation

int getpgrp() {
  _getpgrp ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(), _dart_getpgrp>('getpgrp');
  return _getpgrp!();
}