version 1.1.1.1.2.5, 2011/10/14 09:04:04
|
version 1.1.1.1.2.6, 2011/10/14 12:03:10
|
Line 55 proc_head_t pH;
|
Line 55 proc_head_t pH;
|
int bpfLEN, Timeout, Daemon = 1; |
int bpfLEN, Timeout, Daemon = 1; |
char Key[STRSIZ]; |
char Key[STRSIZ]; |
|
|
|
static sched_root_task_t *root = NULL; |
|
static struct tagProc *proc; |
|
|
extern char compiled[], compiledby[], compilehost[]; |
extern char compiled[], compiledby[], compilehost[]; |
|
|
static void |
static void |
Line 79 static void
|
Line 82 static void
|
sig(int s) |
sig(int s) |
{ |
{ |
int state; |
int state; |
|
pid_t pid; |
|
|
switch (s) { |
switch (s) { |
case SIGHUP: |
case SIGHUP: |
Line 93 sig(int s)
|
Line 97 sig(int s)
|
break; |
break; |
case SIGCHLD: |
case SIGCHLD: |
VERB(1) LOG("Got SIGCHLD!\n"); |
VERB(1) LOG("Got SIGCHLD!\n"); |
while (waitpid(-1, &state, WNOHANG) > 0); | while ((pid = waitpid(-1, &state, WNOHANG)) > 0) |
| stopProcess(root, &pH, pid, pktTx); |
break; |
break; |
} |
} |
} |
} |
Line 119 main(int argc, char **argv)
|
Line 124 main(int argc, char **argv)
|
int fd, h = 0, uid = 0, gid = 0; |
int fd, h = 0, uid = 0, gid = 0; |
char ch, szUser[STRSIZ] = "root", szChroot[STRSIZ] = "/", szDev[STRSIZ] = { 0 }; |
char ch, szUser[STRSIZ] = "root", szChroot[STRSIZ] = "/", szDev[STRSIZ] = { 0 }; |
struct sigaction sact; |
struct sigaction sact; |
sched_root_task_t *root = NULL; |
|
struct tagProc *proc; |
|
|
|
strlcpy(Key, DEFAULT_KEY, sizeof Key); |
strlcpy(Key, DEFAULT_KEY, sizeof Key); |
|
|