Commit 5563771b authored by Filippos Giannakos's avatar Filippos Giannakos

Vlmc tool checks if peer is running before stoping it.

parent 2a29e6c9
......@@ -497,9 +497,9 @@ def stop_peer(peer):
s = "Stopping %s " % peer[2]
sys.stdout.write(s.ljust(FIRST_COLUMN_WIDTH))
os.kill(pid, signal.SIGTERM)
i = 0
while check_running(peer[0], pid) > 0:
os.kill(pid, signal.SIGTERM)
time.sleep(0.1)
i += 1
if i > 150:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment