vhangup function

int vhangup()

Revoke access permissions to all processes currently communicating with the control terminal, and then send a SIGHUP signal to the process group of the control terminal.

Implementation

int vhangup() {
  _vhangup ??= Libc()
      .dylib
      .lookupFunction<ffi.Int32 Function(), _dart_vhangup>('vhangup');
  return _vhangup!();
}