setsid function

int setsid()

Create a new session with the calling process as its leader. The process group IDs of the session and the calling process are set to the process ID of the calling process, which is returned.

Implementation

int setsid() {
  _setsid ??=
      Libc().dylib.lookupFunction<ffi.Int32 Function(), _dart_setsid>('setsid');
  return _setsid!();
}