setsid(2)

DESCRIPTION

create a new session for the caller.

SYNOPSIS

long setsid(void);

ERRORS

  • -EPERM
    • The caller is already a process-group leader.
  • -ESRCH
    • There is no current process.