Commit 4537b96a authored by Shane Snyder's avatar Shane Snyder

make sure abt is not re-initialized

reported by Marc Vef, gitlab issue #33
parent 3375e116
......@@ -145,8 +145,11 @@ margo_instance_id margo_init(const char *addr_str, int mode,
if(mode != MARGO_CLIENT_MODE && mode != MARGO_SERVER_MODE) goto err;
ret = ABT_init(0, NULL); /* XXX: argc/argv not currently used by ABT ... */
if(ret != 0) goto err;
if (ABT_initialized() == ABT_ERR_UNINITIALIZED)
{
ret = ABT_init(0, NULL); /* XXX: argc/argv not currently used by ABT ... */
if(ret != 0) goto err;
}
/* set caller (self) ES to idle without polling */
#ifdef HAVE_ABT_SNOOZER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment