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

Diff for /src/usr.bin/mail/popen.c between version 1.33 and 1.34

version 1.33, 2003/06/03 02:56:11 version 1.34, 2004/09/15 22:21:11
Line 344 
Line 344 
         child_freelist = cp;          child_freelist = cp;
 }  }
   
   /* ARGSUSED */
 void  void
 sigchild(int signo)  sigchild(int signo)
 {  {
Line 352 
Line 353 
         struct child *cp;          struct child *cp;
         int save_errno = errno;          int save_errno = errno;
   
         while ((pid =          while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
             waitpid((pid_t)-1, &status, WNOHANG)) > 0) {  
                 cp = findchild(pid, 1);                  cp = findchild(pid, 1);
                 if (!cp)                  if (!cp)
                         continue;                          continue;
Line 430 
Line 430 
 handle_spool_locks(int action)  handle_spool_locks(int action)
 {  {
         static FILE *lockfp = NULL;          static FILE *lockfp = NULL;
         static pid_t lock_pid;  
   
         if (action == 0) {          if (action == 0) {
                 /* Clear the lock */                  /* Clear the lock */
Line 462 
Line 461 
                         lockfp = NULL;                          lockfp = NULL;
                         return(0);                          return(0);
                 }                  }
                 lock_pid = fp_head->pid;        /* new entries added at head */  
         } else {          } else {
                 (void)fprintf(stderr, "handle_spool_locks: unknown action %d\n",                  (void)fprintf(stderr, "handle_spool_locks: unknown action %d\n",
                     action);                      action);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34