On 31 March, 2014 - Linus Torvalds wrote: > On Mon, Mar 31, 2014 at 1:21 PM, Anton Lundin <gla...@acc.umu.se> wrote: > > > > I managed to figure out that the Ubuntu version is built with > > -DTHREADSAFE=ON, but the packages both in f19 and f20 is built without > > threadsafe. > > Ahh. > > I think we need to call git_threads_init() somewhere. The docs say: > > "If libgit2 has been built with GIT_THREADS on, this function must > be called once before any other library functions. > > If libgit2 has been built without GIT_THREADS support, this function > is a no-op" > > so try something like the attached. Maybe it fixes the problem with > your Ubuntu package too? >
Yepp, it fixes things both for current head built threadsafe and the Ubuntu packaged one. I think there should be a git_threads_shutdown() somewhere in that patch too, for it to be complete. //Anton -- Anton Lundin +46702-161604 _______________________________________________ subsurface mailing list subsurface@hohndel.org http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface