DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

setpgrp(S)


setpgrp -- set process group ID

Synopsis

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

pid_t setpgrp(void);

Description

If the calling process is not already a session leader, setpgrp sets the process group ID and session ID of the calling process to the process ID of the calling process, and releases the calling process's controlling terminal.

Return values

On success, setpgrp returns the value of the new process group ID.

References

exec(S), fork(S), getpid(S), intro(S), kill(S), setsid(S), signal(S)

Notices

setpgrp will be phased out in favor of the setsid(S) function.

Considerations for threads programming

This ID number is an attribute of the containing process and is shared by sibling threads.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005