Sign in Join
FPDoc Onlineexperiment

FpSetsid function

In unit BaseUnix

Create a new session.

Declaration

pascal
function FpSetsid: TPid

Description

FpSetsid creates a new session (process group). It returns the new process group id (as returned by FpGetpgrp. This call will fail if the current process is already the process group leader.

Errors

On error, -1 is returned. Extended error information can be retrieved with fpGetErrNo

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.