getsid(2) | System Calls Manual | getsid(2) |
NOMBRE
getsid - obtener identificador de sesión
BIBLIOTECA
Biblioteca Estándar C (libc, -lc)
SINOPSIS
#include <unistd.h>
pid_t getsid(pid_t pid);
getsid():
_XOPEN_SOURCE >= 500 || /* Desde glibc 2.12: */ _POSIX_C_SOURCE >= 200809L
DESCRIPCIÓN
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
VERSIONES
Linux no devuelve el valor EPERM.
ESTÁNDARES
POSIX.1-2008.
HISTORIAL
POSIX.1-2001, SVr4. Linux 2.0.
NOTAS
See credentials(7) for a description of sessions and session IDs.
VÉASE TAMBIÉN
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Juan Piernas <[email protected]> y Miguel Pérez Ibars <[email protected]>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 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 [email protected].
23 Julio 2024 | Páginas de Manual de Linux 6.12 |