[CRIU] [PATCH 40/44] sys_getpgid: fixed the syscall prototype since it actually has one argument.

Alexander Kartashov alekskartashov at parallels.com
Mon Jan 7 10:05:09 EST 2013


Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 arch/x86/syscall-x86-64.def |    2 +-
 pie/parasite.c              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/syscall-x86-64.def b/arch/x86/syscall-x86-64.def
index 7121e60..70d707d 100644
--- a/arch/x86/syscall-x86-64.def
+++ b/arch/x86/syscall-x86-64.def
@@ -50,7 +50,7 @@ __NR_readlink		89		sys_readlink		(const char *path, char *buf, int bufsize)
 __NR_getgroups		115		sys_getgroups		(int gsize, unsigned int *groups)
 __NR_setresuid		117		sys_setresuid		(int uid, int euid, int suid)
 __NR_setresgid		119		sys_setresgid		(int gid, int egid, int sgid)
-__NR_getpgid		121		sys_getpgid		(void)
+__NR_getpgid		121		sys_getpgid		(pid_t pid)
 __NR_setfsuid		122		sys_setfsuid		(int fsuid)
 __NR_setfsgid		123		sys_setfsgid		(int fsgid)
 __NR_getsid		124		sys_getsid		(void)
diff --git a/pie/parasite.c b/pie/parasite.c
index 7cda9aa..3d3fd85 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -284,7 +284,7 @@ static int dump_misc(struct parasite_dump_misc *args)
 
 	args->pid = sys_getpid();
 	args->sid = sys_getsid();
-	args->pgid = sys_getpgid();
+	args->pgid = sys_getpgid(0);
 	args->tls = arch_get_tls();
 
 	return 0;
-- 
1.7.10.4



More information about the CRIU mailing list