Commit 0df3f79f authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

criu(8): fix --inherit-fd description

This patch describes the correct syntax of --inherit-fd.

travis-ci: success for Add/fix description of --external and --inherit-fd
CC: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent aa2cb64d
...@@ -263,11 +263,23 @@ For example, the command line for the above example should look like this: ...@@ -263,11 +263,23 @@ For example, the command line for the above example should look like this:
~~~~~~~~~ ~~~~~~~~~
Restores previously checkpointed processes. Restores previously checkpointed processes.
*--inherit-fd* *fd[*'N'*]:*'path':: *--inherit-fd* *fd[*'N'*]:*'resource'::
Inherit file descriptors. This asks *criu* to use an already opened Inherit a file descriptor. This option lets *criu* use an already opened
file descriptor 'N' for restoring a file indentified by 'path'. Note file descriptor 'N' for restoring a file indentified by 'resource'.
that the 'N' must be enclosed in a literal square brackets, that This option can be used to restore an external resource dumped
usually needs to be escaped from shell. with the help of *--external* *file*, *tty*, and *unix* options.
+
The 'resource' argument can be one of the following:
+
- *tty[*'rdev'*:*'dev'*]*
- *pipe[*'inode'*]*
- *socket[*'inode'*]*
- *file[*'mnt_id'*:*'inode'*]*
- 'path/to/file'
+
Note that square brackets used in this option arguments are literals and
usually need to be escaped from shell.
*-d*, *--restore-detached*:: *-d*, *--restore-detached*::
Detach *criu* itself once restore is complete. Detach *criu* itself once restore is complete.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment