native_getsid function

int native_getsid(
  1. int pid
)

Return the session ID of the given process.

Implementation

int native_getsid(
  int pid,
) {
  _getsid ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(ffi.Int32), _dart_getsid>('getsid');
  return _getsid!(
    pid,
  );
}