Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
setpgid(2) OSS System Calls Reference Manual
[EPERM] One of the following conditions exists:
• The process indicated by the pid parameter is a session leader.
• The value of the pid parameter matches the OSS process ID of a child
process of the calling process, and the child process is not in the same
session as the calling process.
• The value of the pgid parameter is valid, but it does not match the OSS
process ID of the process indicated by the pid parameter, and there is no
process with a process group ID that matches the value of pgid in the
same session as the calling process.
[ESRCH] The value of the pid parameter does not match the OSS process ID of the calling
process or of a child process of the calling process.
RELATED INFORMATION
Functions: exec(2), getpgrp(2), setsid(2), tcsetpgrp(2), tdm_execve(2), tdm_execvep(2),
tdm_spawn(2), tdm_spawnp(2).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specification:
• The errno value [ENOTOSS] can be returned.
7−62 Hewlett-Packard Company 527186-023