mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 18:19:39 +00:00
cr-service: spell out an error
While working on runc checkpointing, I incorrectly closed status_fd prematurely, and received an error from CRIU, but it was non-descriptive. Do print the error from open(). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
65c1be819d
commit
516080bd5d
1 changed files with 3 additions and 1 deletions
|
|
@ -680,8 +680,10 @@ static int setup_opts_from_req(int sk, CriuOpts *req)
|
|||
if (req->has_status_fd) {
|
||||
sprintf(status_fd, "/proc/%d/fd/%d", ids.pid, req->status_fd);
|
||||
opts.status_fd = open(status_fd, O_WRONLY);
|
||||
if (opts.status_fd < 0)
|
||||
if (opts.status_fd < 0) {
|
||||
pr_perror("Can't reopen status fd %s", status_fd);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
||||
if (req->orphan_pts_master)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue