[CRIU] [PATCH 10/15] criu --help: fix --inherit-fd description

Kir Kolyshkin kir at openvz.org
Tue Aug 30 16:58:13 PDT 2016


* Simplify phrases, removing duplicate words -- saving 1 line
* Drop <>, use UPPERCASE for variable parts as in other places
* Obey 80 columns

Was:
  --inherit-fd fd[<num>]:<existing>
                        Inherit file descriptors. This allows to treat file desc
riptor
                        <num> as being already opened via <existing> one and ins
tead of
                        trying to open we inherit it:
                            tty[rdev:dev]
                            pipe[inode]
                            socket[inode]
                            file[mnt_id:inode]

Now:
  --inherit-fd fd[NUM]:RES
                        Inherit file descriptors, treating fd NUM as being
                        already opened via an existing RES, which can be:
                            tty[rdev:dev]
                            pipe[inode]
                            socket[inode]
                            file[mnt_id:inode]

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 criu/crtools.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/criu/crtools.c b/criu/crtools.c
index a4df1b8..85dafe1 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -895,10 +895,9 @@ usage:
 "                            dev[maj:min]:VAL\n"
 "                        Formats of RES on restore:\n"
 "                            dev[VAL]:DEVPATH\n"
-"  --inherit-fd fd[<num>]:<existing>\n"
-"                        Inherit file descriptors. This allows to treat file descriptor\n"
-"                        <num> as being already opened via <existing> one and instead of\n"
-"                        trying to open we inherit it:\n"
+"  --inherit-fd fd[NUM]:RES\n"
+"                        Inherit file descriptors, treating fd NUM as being\n"
+"                        already opened via an existing RES, which can be:\n"
 "                            tty[rdev:dev]\n"
 "                            pipe[inode]\n"
 "                            socket[inode]\n"
-- 
2.7.4



More information about the CRIU mailing list