getsid man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

getsid(2)							     getsid(2)

NAME
       getsid() - get session ID

SYNOPSIS
DESCRIPTION
       The  function  returns the session ID of the specified process.	If pid
       is the call applies to the current process.  For this  to  be  allowed,
       the current process and the referenced process must be in the same ses‐
       sion.

   Security Restrictions
       The actions associated with this system call are subject to compartmen‐
       tal  restrictions.  See compartments(5) for more information about com‐
       partmentalization on systems that support that feature.

       Compartmental restrictions can be overridden if the  process  possesses
       the privilege (PRIV_COMMALLOWED).  Processes owned by the superuser may
       not have this privilege.	 Processes owned by any	 user  may  have  this
       privilege, depending on system configuration.

       See  privileges(5) for more information about privileged access on sys‐
       tems that support fine-grained privileges.

RETURN VALUE
       Upon successful completion, returns the session	ID  of	the  specified
       process.	  Otherwise,  it  returns  a value of and sets to indicate the
       error.

ERRORS
       If the function fails, it sets (see errno(2)) to one of	the  following
       values:

	      [EPERM]	     The current process and the specified process are
			     not in the same session.

	      [ESRCH]	     No process can be	found  corresponding  to  that
			     specified by pid.

SEE ALSO
       exec(2),	 fork(2), getpgid(2), getpid(2), setpgid(2), setsid(2), tcget‐
       sid(3C).

								     getsid(2)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net