[CRIU] [PATCH]v2 stats: write stats at work directory

Ruslan Kuprieiev kupruser at gmail.com
Fri Nov 15 15:29:57 PST 2013


Stats must be in work dir, as logfiles and pidfiles.

Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 stats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stats.c b/stats.c
index baf52af..8af9942 100644
--- a/stats.c
+++ b/stats.c
@@ -134,7 +134,7 @@ void write_stats(int what)
 	} else
 		return;
 
-	fd = open_image(CR_FD_STATS, O_DUMP, name);
+	fd = open_image_at(AT_FDCWD, CR_FD_STATS, O_DUMP, name);
 	if (fd >= 0) {
 		pb_write_one(fd, &stats, PB_STATS);
 		close(fd);
-- 
1.8.1.2



More information about the CRIU mailing list