getsid(2) System Calls Manual getsid(2) NOMBRE getsid - obtener identificador de sesion BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include pid_t getsid(pid_t pid); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): getsid(): _XOPEN_SOURCE >= 500 || /* Desde glibc 2.12: */ _POSIX_C_SOURCE >= 200809L DESCRIPCION 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 is returned, and errno is set to indicate the error. ERRORES EPERM Existe un proceso con el identificador de proceso pid , pero no se encuentra en la misma sesion que el proceso actual, y la implementacion considera esto un error. ESRCH No se encontro un proceso con identificador pid. VERSIONES Linux no devuelve el valor EPERM. ESTANDARES POSIX.1-2008. HISTORIAL POSIX.1-2001, SVr4. Linux 2.0. NOTAS See credentials(7) for a description of sessions and session IDs. VEASE TAMBIEN getpgid(2), setsid(2), credentials(7) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Juan Piernas y Miguel Perez Ibars Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 getsid(2)