Subject: Re: libssh2 thread safety

Re: libssh2 thread safety

From: Jasmeet Bagga <>
Date: Fri, 13 Apr 2012 19:07:31 -0700

On 4/13/12 6:37 PM, Peter Stuge wrote:
> Jasmeet Bagga wrote:
>> Is libssh2 thread safe.
> No.
Sorry, I didn't see this response before posting a follow up question.
Allow me to ask a more specific question. Is there a sane way to use
libssh2 from a multi-threaded application ? In my case all ssh sessions
are contained within a single thread. However looking at libssh2's use
of errno, I was wondering if I need to compile libssh2 with -D_REENTRANT
to be able to use it correctly here ?

> //Peter
> _______________________________________________
> libssh2-devel

Received on 2012-04-14