/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugin-runner.c

* plugin-runner.c (main): If debugging, print name of failed plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
936
936
  
937
937
  closedir(dir);
938
938
  dir = NULL;
939
 
  free_plugin(getplugin(NULL));
940
939
  
941
940
  for(plugin *p = plugin_list; p != NULL; p = p->next){
942
941
    if(p->pid != 0){
970
969
 
971
970
          if(debug){
972
971
            if(WIFEXITED(proc->status)){
973
 
              fprintf(stderr, "Plugin %" PRIdMAX " exited with status"
974
 
                      " %d\n", (intmax_t) (proc->pid),
 
972
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] exited with"
 
973
                      " status %d\n", proc->name,
 
974
                      (intmax_t) (proc->pid),
975
975
                      WEXITSTATUS(proc->status));
976
976
            } else if(WIFSIGNALED(proc->status)){
977
 
              fprintf(stderr, "Plugin %" PRIdMAX " killed by signal"
978
 
                      " %d\n", (intmax_t) (proc->pid),
 
977
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] killed by"
 
978
                      " signal %d\n", proc->name,
 
979
                      (intmax_t) (proc->pid),
979
980
                      WTERMSIG(proc->status));
980
981
            } else if(WCOREDUMP(proc->status)){
981
 
              fprintf(stderr, "Plugin %" PRIdMAX " dumped core\n",
982
 
                      (intmax_t) (proc->pid));
 
982
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] dumped"
 
983
                      " core\n", proc->name, (intmax_t) (proc->pid));
983
984
            }
984
985
          }
985
986