[CRIU] [PATCH 4/4] p.haul: add some minor comments

Ruslan Kuprieiev kupruser at gmail.com
Mon Oct 13 03:12:47 PDT 2014


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 p.haul | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/p.haul b/p.haul
index 97b7e14..15ddfdc 100755
--- a/p.haul
+++ b/p.haul
@@ -53,6 +53,7 @@ args = vars(parser.parse_args())
 ph_type = (args.pop("type"), args.pop("id"))
 dst = parse_dest(args.pop("to"))
 
+# Pop ssh options
 use_ssh = args.pop("ssh")
 ssh_user = args.pop("ssh_user")
 use_compression = args.pop("ssh_compression")
@@ -60,6 +61,7 @@ ssh_port = args.pop("ssh_port")
 ssh_fwd_port = args.pop("ssh_fwd_port")
 ssh_cmd = ""
 
+# Establish ssh tunnel
 if use_ssh:
 	ssh_cmd = "ssh -f -N "
 	if use_compression:
@@ -77,5 +79,6 @@ worker = ph_iters.phaul_iter_worker(ph_type, dst)
 worker.set_options(args)
 worker.start_migration()
 
+# Kill ssh tunnel
 if use_ssh:
 	os.system("pkill -f \""+ssh_cmd+"\"")
-- 
1.9.3



More information about the CRIU mailing list