setpgrp man page on Tru64

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

setpgrp(3)							    setpgrp(3)

NAME
       setpgrp - Sets the process group ID

SYNOPSIS
       #include <unistd.h> #include <sys/types.h>

       pid_t setpgrp(void);

LIBRARY
       SVR4 Library (libsvr4)

DESCRIPTION
       The  setpgrp()  function creates a new session when the calling process
       is not a process group leader. The calling  process  then  becomes  the
       session	leader	of this session, becomes the process leader of the new
       process group, and has no controlling terminal.	The process  group  ID
       of  the	calling	 process  is  set equal to its process ID. The calling
       process becomes the only process in the new process group and the  only
       process in the new session.

RETURN VALUES
       Upon successful completion, the setpgrp() function returns the value of
       the new process group ID.  Otherwise, a value of (pid_t)-1 is  returned
       and errno is set to indicate the error.

ERRORS
       The  setpgrp() function sets errno to the specified values for the fol‐
       lowing conditions: The calling process is  already  the	process	 group
       leader,	or the process group ID of another process matches the process
       ID of the calling process.

RELATED INFORMATION
       Functions: exec(2), fork(2), getpid(2), getsid(2), kill(2)

       Guides: Programmer's Guide

       delim off

								    setpgrp(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

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