Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

PXFSETPGID

POSIX Subroutine: Sets the process group ID. This routine is only available for Linux.

Module

USE IFPOSIX

CALL PXFSETPGID (ipid,ipgid,ierror)

ipid

(Input) INTEGER(4). The process group ID to change.

ipgid

(Input) INTEGER(4). The new process group ID.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFSETPGID subroutine sets the process group ID of the process specified by ipid to ipgid.

If ipid is zero, the process ID of the current process is used. If ipgid is zero, the process ID of the process specified by ipid is used.

PXFSETPGID can be used to move a process from one process group to another, but both process groups must be part of the same session. In this case, ipgid specifies an existing process group to be joined and the session ID of that group must match the session ID of the joining process.