Skip to content

Commit

Permalink
EXAMPLES/HELLO: Fix barrier at exit
Browse files Browse the repository at this point in the history
Barrier should be used when failure mode is NONE
  • Loading branch information
yosefe committed Aug 16, 2021
1 parent 68de674 commit 4e27896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ucp_hello_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ int main(int argc, char **argv)

ret = run_test(client_target_name, ucp_worker);

if (!ret && (err_handling_opt.failure_mode != FAILURE_MODE_NONE)) {
if (!ret && (err_handling_opt.failure_mode == FAILURE_MODE_NONE)) {
/* Make sure remote is disconnected before destroying local worker */
ret = barrier(oob_sock);
}
Expand Down

0 comments on commit 4e27896

Please sign in to comment.