HPlogo 900 Series HP 3000 Computer Systems: MPE/iX Intrinsics Reference Manual > Chapter 4 Command Definitions

GETPROCID

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

NM and CM callable.

Returns the process identification number (PIN) of a child process. Process handling (PH) capability is required.

Syntax

   I16              I16V

   pin:=GETPROCID(numchild);

Functional Return

pin

16-bit signed integer (assigned functional return)

Returns the PIN of the specified child process.

Parameters

numchild

16-bit signed integer by value (required)

Passes a number indicating which child's PIN GETPROCID returns. The value of numchild corresponds to the order of creation of the current children of the calling process, as follows:

ValueMeaning
<=1PIN of the oldest child process
2PIN of second oldest child process
..
..
..
nPIN of the most recently created child process (where n is the number of children currently in existence)
>nA value greater than the number of children in existence, returns a zero.

Related Information

Intrinsics

None

Commands

None

Manuals

Process Management Programmer's Guide (32650-90023)

Feedback to webmaster