omniti-labs/reconnoiter — pull request #125 by goblin (2012-12-18 10:43:52+00:00)
Title: initialize threading in ssh2 module

This seems to have fixed the noitd crashes mentioned in this thread:
http://lists.omniti.com/pipermail/reconnoiter-users/2012-September/000798.html

As suggested by Theo, I've added the `gcry_control()` call at module initialization, along with a call to `GCRY_THREAD_OPTION_PTHREAD_IMPL; ` to make it all work.

I've seen no segfaults for several days after adding this (and previously on that same system the crashes were pretty common).