Commit 34637d8d authored by Philip Carns's avatar Philip Carns

zero byte eventual for server wait

parent 0071e7bf
...@@ -21,7 +21,6 @@ int main(int argc, char **argv) ...@@ -21,7 +21,6 @@ int main(int argc, char **argv)
{ {
int ret; int ret;
ABT_eventual eventual; ABT_eventual eventual;
int *shutdown;
margo_instance_id mid; margo_instance_id mid;
ABT_xstream handler_xstream; ABT_xstream handler_xstream;
ABT_pool handler_pool; ABT_pool handler_pool;
...@@ -143,14 +142,14 @@ int main(int argc, char **argv) ...@@ -143,14 +142,14 @@ int main(int argc, char **argv)
my_rpc_ult_handler); my_rpc_ult_handler);
/* suspend this ULT until someone tells us to shut down */ /* suspend this ULT until someone tells us to shut down */
ret = ABT_eventual_create(sizeof(*shutdown), &eventual); ret = ABT_eventual_create(0, &eventual);
if(ret != 0) if(ret != 0)
{ {
fprintf(stderr, "Error: ABT_eventual_create()\n"); fprintf(stderr, "Error: ABT_eventual_create()\n");
return(-1); return(-1);
} }
ABT_eventual_wait(eventual, (void**)&shutdown); ABT_eventual_wait(eventual, NULL);
/* shut down everything */ /* shut down everything */
margo_finalize(mid); margo_finalize(mid);
......
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