[CRIU] [PATCH 2/3] parasite: Rename gen_parasite_saddr @pid to @key

Cyrill Gorcunov gorcunov at openvz.org
Mon Mar 19 11:22:41 EDT 2012


This routine will be used more widely and we will
be generating sockets with name based on some predefined
unique value rather than 'pid', so name argument this
way.

No change on functional level.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 parasite-syscall.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/parasite-syscall.c b/parasite-syscall.c
index 5b0753f..7f161c6 100644
--- a/parasite-syscall.c
+++ b/parasite-syscall.c
@@ -325,13 +325,13 @@ static int munmap_seized(struct parasite_ctl *ctl, void *addr, size_t length)
 	return ret;
 }
 
-static int gen_parasite_saddr(struct sockaddr_un *saddr, pid_t pid)
+static int gen_parasite_saddr(struct sockaddr_un *saddr, int key)
 {
 	int sun_len;
 
 	saddr->sun_family = AF_UNIX;
 	snprintf(saddr->sun_path, UNIX_PATH_MAX,
-			"X/crtools-pr-%d", pid);
+			"X/crtools-pr-%d", key);
 
 	sun_len = SUN_LEN(saddr);
 	*saddr->sun_path = '\0';
-- 
1.7.7.6



More information about the CRIU mailing list