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

Diff for /src/usr.bin/ssh/scp.c between version 1.224 and 1.225

version 1.224, 2021/08/09 07:19:12 version 1.225, 2021/08/09 07:21:01
Line 2096 
Line 2096 
         else          else
                 exit(1);                  exit(1);
 }  }
   
   void
   cleanup_exit(int i)
   {
           if (remin > 0)
                   close(remin);
           if (remout > 0)
                   close(remout);
           if (remin2 > 0)
                   close(remin2);
           if (remout2 > 0)
                   close(remout2);
           if (do_cmd_pid > 0)
                   waitpid(do_cmd_pid, NULL, 0);
           if (do_cmd_pid2 > 0)
                   waitpid(do_cmd_pid2, NULL, 0);
           exit(i);
   }

Legend:
Removed from v.1.224  
changed lines
  Added in v.1.225