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

Diff for /src/usr.bin/mg/dired.c between version 1.24 and 1.25

version 1.24, 2005/10/14 06:41:47 version 1.25, 2005/10/14 15:41:33
Line 10 
Line 10 
 #include "kbd.h"  #include "kbd.h"
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
   #include <sys/time.h>
   #include <sys/resource.h>
 #include <sys/wait.h>  #include <sys/wait.h>
   
 #include <ctype.h>  #include <ctype.h>
Line 393 
Line 395 
 reaper(int signo __attribute__((unused)))  reaper(int signo __attribute__((unused)))
 {  {
         int     save_errno = errno, status;          int     save_errno = errno, status;
         pid_t   ret;  
   
         while ((ret = waitpid(-1, &status, WNOHANG)) >= 0)          while (waitpid(-1, &status, WNOHANG) >= 0)
                 ;                  ;
         errno = save_errno;          errno = save_errno;
 }  }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25