[Bug 897] scp doesn't clean up forked children when processing multiple files

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jul 20 23:29:00 EST 2004


http://bugzilla.mindrot.org/show_bug.cgi?id=897

           Summary: scp doesn't clean up forked children when processing
                    multiple files
           Product: Portable OpenSSH
           Version: 3.8p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: scp
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: s.riehm at hse24.de


scp forks one ssh process for each file to be copied, but doesn't wait for the processes until all files 
have been processed.

Problem: if you are copying large numbers of files scp collects one zombie per file copied. If the 
number of files to be copied in one scp command excedes the number of processes a user may have, 
the user gets the message: "fork: resource temporarily unavailable"

See patch (very simple - just moved waitpid call into the respective for loops. My Imperical tests worked 
fine (Mac OS-X 10.3.4)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list