•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FilePwait()
Pwait3()
Pwaitpid()                                                           GEMDOS

Syntax

LONG Pwaitpid( pid, flag, rusage )
WORD pid, flag;
LONG *rusage;

Function      Pwaitpid() returns exit code information about one or more
              child processes.

Opcode        314 (0x13A)

Availability  Available when a 'MiNT' cookie with a version of at least
              0.96 exists.

Parameters    pid specifies the children whose exit codes are of interest
              as follows. A pid of PWP_ALL (-1) indicates that all children
              are of interest. A pid of less than -1 indicates that any
              child whose process group is -pid is of interest. A pid of
              PWP_GROUP (0) indicates that any child with the same process
              group ID of the parent is of interest. A pid greater than 0
              indicates that the child with the given process ID is of
              interest. For the usage of flag and rusage see Pwait3().

Binding       pea      rusage
              move.w   flag,-(sp)
              move.w   pid,-(sp)
              trap     #1
              lea      10(sp),sp

Return Value  See Pwait3().

See Also      Pwait(), Pwait3()