[CRIU] [PATCH 1/2] kerndat: use PROC_SELF in loginuid test

Dmitry Safonov dsafonov at virtuozzo.com
Thu Apr 21 04:27:30 PDT 2016


Impact: little optimization

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/kerndat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/kerndat.c b/criu/kerndat.c
index 3b5735b717a2..8636b0707a5c 100644
--- a/criu/kerndat.c
+++ b/criu/kerndat.c
@@ -421,7 +421,7 @@ int kerndat_loginuid(bool only_dump)
 	kdat.has_loginuid = false;
 
 	/* No such file: CONFIG_AUDITSYSCALL disabled */
-	saved_loginuid = parse_pid_loginuid(getpid(), &ret, true);
+	saved_loginuid = parse_pid_loginuid(PROC_SELF, &ret, true);
 	if (ret < 0)
 		return 0;
 
-- 
2.8.0



More information about the CRIU mailing list