Contact Form

Name

Email *

Message *

Cari Blog Ini

Author Details

Man 2 Setsid

WEB setsid2 System Calls Manual

setsid2

NAME

setsid - creates a session and sets the process group ID

LIBRARY

Standard C library (libc -lc)

SYNOPSIS

include <unistd.h>

pid_t setsid(void);

DESCRIPTION

Setsid creates a new session if the calling process is not a process group leader. The calling process is also made to be the leader of the new session.

RETURN VALUE

On success, setsid() returns the process ID of the calling process. On failure, -1 is returned and errno is set to indicate the error.

ERRORS

The setsid() function will fail and set errno to one of the following values:

  • EPERM Operation not permitted
  • ENOSPC System limit on number of processes has been reached

SEE ALSO

getpgid(2), setsid(2), setsid(7),

namespaces(7)

COLOPHON

This page is part of release 5.13 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. The man-pages project is a user-maintained documentation project created and maintained by users of the Linux kernel and other free software/open source systems.


Comments