[CRIU] [PATCH 2/8] util: Extend reopen_fd_as_safe
Cyrill Gorcunov
gorcunov at openvz.org
Thu Apr 12 11:50:36 EDT 2012
Our loggin engine prints file:line only at invoke point,
so it's unable to see where exactly reopen_fd_as_safe is
failed.
With this patch the output is more human readable
| Error (util.c:96): fd 7 already in use (called at files.c:359)
Ideally we need full backtrace here, but it's different task.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/util.h | 6 +++---
util.c | 11 +++++++----
2 files changed, 10 insertions(+), 7 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-util-Extend-reopen_fd_as_safe.patch
Type: text/x-patch
Size: 1978 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120412/0da1fdc4/0002-util-Extend-reopen_fd_as_safe.bin
More information about the CRIU
mailing list