13 lines
317 B
C
13 lines
317 B
C
#ifndef __CHILD_H__
|
|
#define __CHILD_H__
|
|
|
|
typedef struct {
|
|
pid_t child_pid; /* process ID */
|
|
int child_pipefd; /* parent's stream pipe to/from child */
|
|
int child_status; /* 0 = ready */
|
|
long child_count; /* # connections handled */
|
|
} Child;
|
|
|
|
Child *cptr; /* array of Child structures; calloc'ed */
|
|
#endif
|