Skip to content

Commit

Permalink
Fixed #666: Segfault on calling hpx::finalize twice
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jan 15, 2013
1 parent fdf64ba commit 4aa7be0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hpx_init.cpp
Expand Up @@ -1021,6 +1021,9 @@ namespace hpx
return -1;
}

if (&ec != &throws)
ec = make_success_code();

if (std::abs(localwait - 1.0) < 1e-16)
localwait = detail::get_option("hpx.finalize_wait_time", -1.0);
else
Expand Down Expand Up @@ -1053,6 +1056,9 @@ namespace hpx
return -1;
}

if (&ec != &throws)
ec = make_success_code();

if (std::abs(localwait - 1.0) < 1e-16)
localwait = detail::get_option("hpx.finalize_wait_time", -1.0);
else
Expand Down

0 comments on commit 4aa7be0

Please sign in to comment.