[CRIU] [PATCH 2/6] parasite: Rename gen_parasite_saddr @pid to @key
Cyrill Gorcunov
gorcunov at openvz.org
Wed Mar 21 03:47:53 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 fa505e1..969f6ae 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