[BACK]Return to process.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / pmdb

Diff for /src/usr.bin/pmdb/Attic/process.c between version 1.2 and 1.3

version 1.2, 2002/03/15 16:41:06 version 1.3, 2002/03/19 07:26:58
Line 27 
Line 27 
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/ptrace.h>  #include <sys/ptrace.h>
 #include <sys/wait.h>  #include <sys/wait.h>
 #include <stdlib.h>  #include <err.h>
 #include <stdio.h>  #include <errno.h>
 #include <signal.h>  #include <signal.h>
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
 #include <unistd.h>  #include <unistd.h>
 #include <err.h>  
   
 #include "pmdb.h"  #include "pmdb.h"
 #include "symbol.h"  #include "symbol.h"
Line 44 
Line 46 
   
         if (ps->ps_state == LOADED)          if (ps->ps_state == LOADED)
                 return (0);                  return (0);
   
           if (access(*ps->ps_argv, R_OK|X_OK) < 0) {
                   fprintf(stderr, "%s: %s.\n", *ps->ps_argv,
                       strerror(errno));
                   return (0);
           }
   
         switch (ps->ps_pid = fork()) {          switch (ps->ps_pid = fork()) {
         case 0:          case 0:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3