[openssl-dev] [openssl.org #4614] pthread_once and malloc failures

Viktor Dukhovni openssl-users at dukhovni.org
Mon Jul 11 18:14:00 UTC 2016


On Mon, Jul 11, 2016 at 05:48:06PM +0000, Salz, Rich via RT wrote:

> Previously we've changed return-types from void to int.  If there's still time, that seems like the thing to do here.

With pthread_once and friends the pattern is to use void init
functions, and as necessary check for success by examining the
resulting state after the fact.

The init function passed to pthread_once() is defined to take no
arguments and return no results.

-- 
	Viktor.


More information about the openssl-dev mailing list