Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remote: Use tmp file buffer when restore ip dump
When CRIU calls the ip tool on restore, it passes the fd of remote socket by replacing the STDIN before execvp. The stdin is used by the ip tool to receive input. However, the ip tool calls ftell(stdin) which fails with "Illegal seek" since UNIX sockets do not support file positioning operations. To resolve this issue, read the received content from the UNIX socket and store it into temporary file, then replace STDIN with the fd of this tmp file. Fixes checkpoint-restore#311 Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
- Loading branch information