/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

merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
970
970
 
971
971
          if(debug){
972
972
            if(WIFEXITED(proc->status)){
973
 
              fprintf(stderr, "Plugin %" PRIdMAX " exited with status"
974
 
                      " %d\n", (intmax_t) (proc->pid),
 
973
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] exited with"
 
974
                      " status %d\n", proc->name,
 
975
                      (intmax_t) (proc->pid),
975
976
                      WEXITSTATUS(proc->status));
976
977
            } else if(WIFSIGNALED(proc->status)){
977
 
              fprintf(stderr, "Plugin %" PRIdMAX " killed by signal"
978
 
                      " %d\n", (intmax_t) (proc->pid),
 
978
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] killed by"
 
979
                      " signal %d\n", proc->name,
 
980
                      (intmax_t) (proc->pid),
979
981
                      WTERMSIG(proc->status));
980
982
            } else if(WCOREDUMP(proc->status)){
981
 
              fprintf(stderr, "Plugin %" PRIdMAX " dumped core\n",
982
 
                      (intmax_t) (proc->pid));
 
983
              fprintf(stderr, "Plugin %s [%" PRIdMAX "] dumped"
 
984
                      " core\n", proc->name, (intmax_t) (proc->pid));
983
985
            }
984
986
          }
985
987