1MBKWAITPID(3)                MBK UTILITY FUNCTIONS               MBKWAITPID(3)
2
3
4

NAME

6       mbkwaitpid - wait for the end of a particular child process.
7

SYNOPSIS

9       #include "mut.h"
10       int mbkwaitpid( pid, mode, status )
11       int pid;
12       int mode;
13       int ∗status;
14

PARAMETER

16       pid                 Process number to wait.
17
18       mode                If mode is set to 1, this function return only when
19                           the child process is terminated.  Otherwise,  func‐
20                           tion return immediately.
21
22       status              If  not  NULL,  the exit status of terminated child
23                           process.
24

DESCRIPTION

26       mbkwaitpid  provides  a  centralized  way  to  catch  terminated  child
27       process.  Because some Alliance library can create a child process, and
28       user application can do so, there must be a centralized way to get  the
29       exit status of process.  The programmer should never modify the handler
30       for SIGCHLD.
31

RETURN VALUE

33       mbkwaitpid return 1 if child process is  terminated,  and  0  if  isn't
34       (case mode != 1 ).
35

SEE ALSO

37       mbk(1), mbksetautoackchld().
38
39
40
41
42ASIM/LIP6                      November 20, 2000                 MBKWAITPID(3)
Impressum