[CRIU] [PATCH] parasite: add ability to execute more than one crtools dump simultaneously

Andrey Vagin avagin at openvz.org
Thu Dec 20 07:00:35 EST 2012


A name of a unix socket should be uniq

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 parasite-syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index 708b1b9..420dc43 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -356,7 +356,7 @@ static int parasite_init(struct parasite_ctl *ctl, pid_t pid, int nr_threads)
 	args = parasite_args(ctl, struct parasite_init_args);
 
 	pr_info("Putting tsock into pid %d\n", pid);
-	args->h_addr_len = gen_parasite_saddr(&args->h_addr, 0);
+	args->h_addr_len = gen_parasite_saddr(&args->h_addr, getpid());
 	args->p_addr_len = gen_parasite_saddr(&args->p_addr, pid);
 	args->nr_threads = nr_threads;
 
-- 
1.7.11.7



More information about the CRIU mailing list