 +
 +	if (active) {
 +		return 0;
++	}
++
++	if ( globus_thread_set_model( "pthread" ) ) {
++		grid_proxy_errmsg = "failed to activate Globus";
++		return -1;
 +	}
 +
 +	if ( globus_module_activate(GLOBUS_GSI_CREDENTIAL_MODULE) ) {

 
  	if ((limit_command_output == limited_proxy_name) &&
 	    get_lock_on_limited_proxy)
@@ -2712,25 +2836,6 @@
 		return(NULL);
 	}
 

 	}
 
 	limit_command_output = make_message("%s_XXXXXX", limited_proxy_name);
@@ -2649,18 +2788,9 @@
         
 	get_lock_on_limited_proxy = config_test_boolean(config_get("blah_get_lock_on_limited_proxies",blah_config_handle));
 
