OpenSSH with "resumable" functionality

Misha Koshelev misha680 at gmail.com
Tue Apr 20 22:07:35 EST 2010


Damien Miller wrote:
> On Mon, 19 Apr 2010, Misha Koshelev wrote:
> 
>> Thank you all. I am trying to implement something much simple than
>> GNU screen, but am not very familiar with Unix IPC and am having the
>> hardest time.
>>
>> Perhaps you might have some suggestions?
> 
> There are quite a few things wrong with your example, such as: using
> blocking IO, failing to deal with stdio closure or errors, spinning
> instead of using select() or poll(). There are probably more problems,
> I only glanced over it.
> 
> You should run to your nearest library, borrow and read the entirety
> of W. Richard Stevens' "Advanced Programming in the UNIX Environment"
> before writing another line of code. Also, check out libevent:
> http://www.monkey.org/~provos/libevent/
> 
> -d

Thank you. Apparently, among other things, I flipped the parameters to dup2.

I have also switched to a poll() based method.

Thank you!
Misha



More information about the openssh-unix-dev mailing list