www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: problems on closing channel

Re: problems on closing channel

From: Peter Stuge <peter_at_stuge.se>
Date: Fri, 13 Sep 2013 12:34:01 +0200

Peter wrote:
> thread1 open a channel and then run command(such as ping) as I
> mentioned above. And thread2 open another channel run command
> such as "killall ping" to terminate the command.

Besides the mutex, consider what happens when your program runs two
or more times using the same account on a remote server.

If you need reliable remote process management then you must
implement a service which does this for you, that runs on the remote
server. SSH does not solve that problem for you, you have to do that
yourself.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-09-13

the libssh2 team