Diff for /ansh/src/ansh3d.c between versions 1.1.1.1.2.3 and 1.1.1.1.2.4

version 1.1.1.1.2.3, 2011/10/14 09:04:04 version 1.1.1.1.2.4, 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 struct tagProc *proc;
   static sched_root_task_t *root;
   
 extern char compiled[], compiledby[], compilehost[];  extern char compiled[], compiledby[], compilehost[];
   
 static void  static void
Line 80  static void Line 83  static void
 sig(int s)  sig(int s)
 {  {
         int state;          int state;
           pid_t pid;
   
         switch (s) {          switch (s) {
                 case SIGHUP:                  case SIGHUP:
Line 94  sig(int s) Line 98  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, icmpTx);
                         break;                          break;
         }          }
 }  }
Line 125  main(int argc, char **argv) Line 130  main(int argc, char **argv)
         long id = ANSH_ID;          long id = ANSH_ID;
         char ch, szUser[STRSIZ] = "root", szChroot[STRSIZ] = "/";          char ch, szUser[STRSIZ] = "root", szChroot[STRSIZ] = "/";
         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);
   

Removed from v.1.1.1.1.2.3  
changed lines
  Added in v.1.1.1.1.2.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>