Commit 0079d73e9f617a0ece58dbc19327f0ac84f338f9
1 parent
9575a0e0
Add a bit of sleeping.
Showing
2 changed files
with
5 additions
and
2 deletions
src/vo/GVOClient.cpp
| ... | ... | @@ -41,6 +41,7 @@ |
| 41 | 41 | |
| 42 | 42 | /* __ Method name definitions ____________________________________________ */ |
| 43 | 43 | #define G_FIND_HUB "GVOClient::find_hub()" |
| 44 | +#define G_REQUIRE_HUB "GVOClient::require_hub()" | |
| 44 | 45 | #define G_REGISTER_TO_HUB "GVOClient::register_to_hub()" |
| 45 | 46 | |
| 46 | 47 | /* __ Macros _____________________________________________________________ */ |
| ... | ... | @@ -620,7 +621,7 @@ bool GVOClient::require_hub(void) |
| 620 | 621 | int pid = fork(); |
| 621 | 622 | if (pid < 0) { |
| 622 | 623 | std::string msg = "Unable to create child process for VO Hub."; |
| 623 | - throw GException::runtime_error(G_FIND_HUB, msg); | |
| 624 | + throw GException::runtime_error(G_REQUIRE_HUB, msg); | |
| 624 | 625 | } |
| 625 | 626 | |
| 626 | 627 | // If we have a PID of 0 we are in the child process. In this case |
| ... | ... | @@ -639,7 +640,6 @@ bool GVOClient::require_hub(void) |
| 639 | 640 | for (int i = 0; i < 5; ++i) { |
| 640 | 641 | found = find_hub() && ping_hub(); |
| 641 | 642 | if (found) { |
| 642 | -std::cout << "*** Hub is alive ***" << std::endl; | |
| 643 | 643 | break; |
| 644 | 644 | } |
| 645 | 645 | sleep(1); | ... | ... |
test/test_GVO.cpp