Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setpgrp(2) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

setpgrp(2)

NAME

setpgrp − set process group ID

SYNOPSIS

#include <unistd.h>

pid_t setpgrp(void);

DESCRIPTION

If the calling process is not already a session leader, setpgrp() sets the process group ID of the calling process to the process ID of the calling process. If setpgrp() creates a new session, then the new session has no controlling terminal. 

The setpgrp() function has no effect when the calling process is a session leader. 

RETURN VALUE

Upon successful completion, setpgrp() returns the new process group ID. 

ERRORS

No errors are defined. 

SEE ALSO

exec, fork(), getpid(), getsid(), kill(), setsid(), <unistd.h>. 

CHANGE HISTORY

First released in Issue 4, Version 2. 

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026