Skip to content

Commit

Permalink
container: fix error return value
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
  • Loading branch information
eriksjolund committed Aug 8, 2023
1 parent 203c5e1 commit 3abb5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcrun/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -2049,11 +2049,11 @@ wait_for_process (struct wait_for_process_args *args, libcrun_error_t *err)

ret = ioctl (0, TIOCGWINSZ, &ws);
if (UNLIKELY (ret < 0))
return crun_error_wrap (err, "copy terminal size from stdin");
return crun_make_error (err, errno, "copy terminal size from stdin");

ret = ioctl (args->terminal_fd, TIOCSWINSZ, &ws);
if (UNLIKELY (ret < 0))
return crun_error_wrap (err, "copy terminal size to pty");
return crun_make_error (err, errno, "copy terminal size to pty");
}
else
{
Expand Down

0 comments on commit 3abb5f6

Please sign in to comment.