setsid man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

setsid(2)							     setsid(2)

Name
       setsid - POSIX create session and set process group ID

Syntax
       #include <sys/types.h>
       pid_t
       setsid()

Description
       The  system call creates a new session, if the calling process is not a
       process group leader.  The calling process is the session leader of the
       new  session,  the  process  group leader of the new process group, and
       does not have a controlling terminal.  The  process  group  ID  of  the
       calling process is set equal to the process ID of the calling process.

Return Values
       Upon  successful	 completion,  the system call returns the value of the
       process group ID of the calling process.	 If the system call fails,  -1
       is returned, and the global variable errno indicates the reason.

Diagnostics
       The system call fails and a new session is not created if the following
       occurs:

       [EPERM]	      The calling process is already a process group leader.

		      The process group ID of a process other than the calling
		      process matches the process ID of the calling process.

See Also
       getpgrp(2), setpgid(3)

								     setsid(2)
[top]

List of man pages available for Ultrix

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