version 1.24, 2015/01/20 03:55:18 |
version 1.25, 2015/01/20 09:00:16 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#include "defs.h" |
|
|
|
/* |
/* |
* Functions for rdist related to children |
* Functions for rdist related to children |
*/ |
*/ |
|
|
#include <sys/select.h> |
#include <sys/select.h> |
#include <sys/wait.h> |
#include <sys/wait.h> |
|
|
|
#include <errno.h> |
|
#include <fcntl.h> |
|
#include <stdlib.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
|
|
#include "client.h" |
|
|
typedef enum _PROCSTATE { |
typedef enum _PROCSTATE { |
PSrunning, |
PSrunning, |
PSdead |
PSdead |
|
|
|
|
static CHILD *childlist = NULL; /* List of children */ |
static CHILD *childlist = NULL; /* List of children */ |
int activechildren = 0; /* Number of active children */ |
int activechildren = 0; /* Number of active children */ |
extern int maxchildren; /* Max active children */ |
|
static int needscan = FALSE; /* Need to scan children */ |
static int needscan = FALSE; /* Need to scan children */ |
|
|
static void removechild(CHILD *); |
static void removechild(CHILD *); |