[CRIU] [PATCH 5/6] restorer: Print proper pid number on error

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 31 06:44:10 EDT 2012


In __export_restore_task we do print last-pid value
in case of error, but erroneously instead of using
the real start of number we use buffer start address,
which might lead to empty string reported.

Before

 | Error (restorer.c:559): Can't set last_pid -22/
 | Error (restorer.c:680): Restorer fail 15952

After

 | Error (restorer.c:559): Can't set last_pid -22/-2
 | Error (restorer.c:680): Restorer fail 16063

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 restorer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-restorer-Print-proper-pid-number-on-error.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20121031/b37e6e35/0005-restorer-Print-proper-pid-number-on-error.bin


More information about the CRIU mailing list