From 2cf8f13ca1f11a0491977e438b262e646137256c Mon Sep 17 00:00:00 2001 From: Mark Polyakov Date: Tue, 11 Nov 2025 15:48:42 -0800 Subject: [PATCH] doc: update pipe/socket examples for --inherit-fd The syntax of the inherit-fd functionality for unix socket and pipe includes a colon. Fixes: 0df3f79fc023 ("criu(8): fix --inherit-fd description") Fixes: c37324b6d0bc ("crtools: describe the inherit-fd option") Signed-off-by: Mark Polyakov Signed-off-by: Radostin Stoyanov --- Documentation/criu.txt | 4 ++-- criu/crtools.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/criu.txt b/Documentation/criu.txt index 40ede84e2..0c9a9e527 100644 --- a/Documentation/criu.txt +++ b/Documentation/criu.txt @@ -502,8 +502,8 @@ Restores previously checkpointed processes. The 'resource' argument can be one of the following: + - **tty[**__rdev__**:**__dev__**]** - - **pipe[**__inode__**]** - - **socket[**__inode__*]* + - **pipe:[**__inode__**]** + - **socket:[**__inode__*]* - **file[**__mnt_id__**:**__inode__**]** - 'path/to/file' diff --git a/criu/crtools.c b/criu/crtools.c index e207133ac..4dc55a065 100644 --- a/criu/crtools.c +++ b/criu/crtools.c @@ -503,8 +503,8 @@ usage: " 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" + " pipe:[inode]\n" + " socket:[inode]\n" " file[mnt_id:inode]\n" " /memfd:name\n" " path/to/file\n"