Provided by: manpages-es-dev_4.13-4_all bug

NOMBRE

       getsid - obtener identificador de sesión

SINOPSIS

       #include <sys/types.h>
       #include <unistd.h>

       pid_t getsid(pid_t pid);

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       getsid():
           _XOPEN_SOURCE >= 500
               || /* Desde glibc 2.12: */ _POSIX_C_SOURCE >= 200809L

DESCRIPCIÓN

       getsid(0)  returns the session ID of the calling process.  getsid() returns the session ID
       of the process with process ID pid.  If pid is 0, getsid()  returns the session ID of  the
       calling process.

VALOR DEVUELTO

       On success, a session ID is returned.  On error, (pid_t) -1 will be returned, and errno is
       set appropriately.

ERRORES

       EPERM  A process with process ID pid exists, but it is not in  the  same  session  as  the
              calling process, and the implementation considers this an error.

       ESRCH  No se encontró un proceso con identificador pid.

VERSIONES

       This system call is available on Linux since version 2.0.

CONFORME A

       POSIX.1-2001, POSIX.1-2008, SVr4.

NOTAS

       Linux no devuelve el valor EPERM.

       See credentials(7)  for a description of sessions and session IDs.

VÉASE TAMBIÉN

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

COLOFÓN

       Esta  página es parte de la versión 5.10 del proyecto Linux man-pages. Puede encontrar una
       descripción del proyecto, información sobre cómo informar errores y la última  versión  de
       esta página en https://www.kernel.org/doc/man-pages/.

TRADUCCIÓN

       La  traducción  al  español  de  esta  página  del  manual  fue  creada  por  Juan Piernas
       <piernas@ditec.um.es> y Miguel Pérez Ibars <mpi79470@alu.um.es>

       Esta traducción es documentación libre; lea  la  GNU  General  Public  License  Version  3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩  o posterior con respecto a las condiciones de
       copyright.  No existe NINGUNA RESPONSABILIDAD.

       Si encuentra algún error en la traducción de esta  página  del  manual,  envíe  un  correo
       electrónico a debian-l10n-spanish@lists.debian.org ⟨⟩.