aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 15:14:50 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 15:16:13 +0100
commit7798ecb93d8ef8fc243ac7e4feb15c9c50a87404 (patch)
tree6be368b48883f8ffe1969b89c5c8acea0a776770
parent3a419eb8e62449bee59f62154cdc359c82957384 (diff)
downloadallocbench-7798ecb93d8ef8fc243ac7e4feb15c9c50a87404.tar.gz
allocbench-7798ecb93d8ef8fc243ac7e4feb15c9c50a87404.zip
wait for server termination after executing the shutdown commands
-rw-r--r--src/benchmark.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index e3986d7..c96ff18 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -295,7 +295,7 @@ class Benchmark:
"""Start Servers
Servers are not allowed to deamonize because then they can't
- be terminated with their Popen object."""
+ be terminated using their Popen object."""
substitutions = {"alloc": alloc_name,
"perm": alloc_name,
@@ -366,6 +366,9 @@ class Benchmark:
print_debug("Stdout:", proc.stdout)
print_debug("Stderr:", proc.stderr)
+ # wait for server termination
+ sleep(5)
+
Benchmark.terminate_subprocess(server["popen"])
def shutdown_servers(self):