|
@@ -8,6 +8,8 @@
|
|
|
|
|
|
#include <iostream>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <fstream>
|
|
|
|
+#include <thread>
|
|
|
|
+#include <chrono>
|
|
#include <cstring>
|
|
#include <cstring>
|
|
#include <cstdlib>
|
|
#include <cstdlib>
|
|
#include <csignal>
|
|
#include <csignal>
|
|
@@ -15,6 +17,8 @@
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
#include <sys/wait.h>
|
|
#include <sys/wait.h>
|
|
|
|
|
|
|
|
+const std::chrono::seconds FIVE_SECONDS(5);
|
|
|
|
+
|
|
const char *ORCHESTRATOR = "bin/orchestrator";
|
|
const char *ORCHESTRATOR = "bin/orchestrator";
|
|
const char *SHUT_DOWN = "scripts/bringDownTestServers.sh";
|
|
const char *SHUT_DOWN = "scripts/bringDownTestServers.sh";
|
|
const int INPUT_BUFFER_LEN = 133;
|
|
const int INPUT_BUFFER_LEN = 133;
|
|
@@ -116,6 +120,8 @@ int main(int argc, char* argv[])
|
|
}
|
|
}
|
|
currPid = 0;
|
|
currPid = 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ std::this_thread::sleep_for(FIVE_SECONDS);
|
|
}
|
|
}
|
|
|
|
|
|
return 0;
|
|
return 0;
|