[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    Re: user/4987: scp does not die like it should
From:       Damien Miller <djm () mindrot ! org>
Date:       2006-02-25 0:27:34
Message-ID: Pine.BSO.4.64.0602251051550.16116 () fuyu ! mindrot ! org
[Download RAW message or body]

On Fri, 27 Jan 2006, Marc Espie wrote:

> ssh processes that handle the transfer stick around for much longer than
> they should.
> 
> What happens is: pkg_add starts a transfer to a pipe, then it closes the
> pipe.  The ssh handling the transfer does not die instantly. Indeed, it
> takes a long time to die: it finishes the transfer first, I think. This
> is very noticeable with big packages.

You are trying to terminate the scp process by closing a pipe that it
is copying to, right? I don't think that will work: I think that scp
deliberately continues the transfer so it doesn't fall out of sync 
when it is working on multiple files (it sends the length first, and then
the file). 

Fixing this means a crawl through the rotting entrails of scp, or you
could just kill() it.

-d

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic