1 /* COPYING ******************************************************************
2 For copyright and licensing terms, see the file named COPYING.
3 // **************************************************************************
4 */
5 
6 /* Waiting for child processes **********************************************
7 // **************************************************************************
8 */
9 
10 #if !defined(INCLUDE_WAIT_H)
11 #define INCLUDE_WAIT_H
12 
13 #include <sys/types.h>
14 
15 int	/// \retval -1 error \retval 0 no child \retval >0 found child
16 wait_blocking_for_anychild_exit (
17 	pid_t & child,
18 	int & status,
19 	int & code
20 ) ;
21 enum {
22 	WAIT_STATUS_RUNNING = 0, WAIT_STATUS_EXITED = 1, WAIT_STATUS_SIGNALLED = 2, WAIT_STATUS_SIGNALLED_CORE = 3, WAIT_STATUS_PAUSED = 4
23 };
24 
25 #endif
26