From 95438501bba6a9617885e83fef74bd17365567f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 2 Mar 2012 23:40:55 +0000 Subject: [PATCH] Control threading model through GLOBUS_THREAD_MODEL. Honour predefined value, but set explicitly the threaded model as default. --- org.glite.lbjp-common.gss/src/glite_gss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.glite.lbjp-common.gss/src/glite_gss.c b/org.glite.lbjp-common.gss/src/glite_gss.c index 1b89187..282b321 100644 --- a/org.glite.lbjp-common.gss/src/glite_gss.c +++ b/org.glite.lbjp-common.gss/src/glite_gss.c @@ -1533,7 +1533,9 @@ edg_wll_gss_initialize(void) { int ret = 0; - globus_thread_set_model("pthread"); + if (!getenv("GLOBUS_THREAD_MODEL")) { + putenv("GLOBUS_THREAD_MODEL=pthread"); + } #ifndef NO_GLOBUS_GSSAPI if (globus_module_activate(GLOBUS_GSI_GSSAPI_MODULE) != GLOBUS_SUCCESS) { -- 1.8.2.3