Commit 80559828 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

v2 stats: write stats at work directory

Stats must be in work dir, as logfiles and pidfiles.
Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5d4824ff
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment