About Red Hat Partner Programmes Training Support and Docs Products and Services
  downloadstorecart
red hat logo search    
redhat.comredhat network
Red Hat Documentation: man pages: man2: Linux Programmer's Manual (2)

Manpage of GETSID

GETSID

Section: Linux Programmer's Manual (2)
Updated: 11 April 2025
Index  

NAME

getsid - get session ID  

SYNOPSIS

#include <unistd.h>

pid_t getsid(pid_t pid);  

DESCRIPTION

getsid(0) returns the session ID of the calling process. getsid(p) returns the session ID of the process with process ID p.  

ERRORS

On error, -1 will be returned. The only error which can happen is ESRCH, when no process with process ID p was found.  

CONFORMING TO

SVr4, which documents an additional EPERM error condition.  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
ERRORS
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:56:06 GMT, March 24, 2025

 

 
 
© 2001 Red Hat, Inc. All rights reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat