Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MBKWAITPID(3)		     MBK UTILITY FUNCTIONS		 MBKWAITPID(3)

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

SYNOPSYS
       #include	"mut.h"
       int mbkwaitpid( pid, mode, status )
       int pid;
       int mode;
       int *status;

PARAMETER
       pid		   Process number to wait.

       mode		   If mode is set to 1,	this function return only when
			   the child process is	terminated.  Otherwise,	 func-
			   tion	return immediatly.

       status		   If  not  NULL,  the exit status of terminated child
			   process.

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

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

SEE ALSO
       mbk(1), mbksetautoackchld().

ASIM/LIP6		       November	20, 2000		 MBKWAITPID(3)

NAME | SYNOPSYS | PARAMETER | DESCRIPTION | RETURN VALUE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=mbkwaitpid&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help